changed some error messages
This commit is contained in:
		@ -180,6 +180,8 @@ typedef enum qse_httpd_peer_flag_t qse_httpd_peer_flag_t;
 | 
			
		||||
typedef struct qse_httpd_peer_t qse_httpd_peer_t;
 | 
			
		||||
struct qse_httpd_peer_t
 | 
			
		||||
{
 | 
			
		||||
	/* == PUBLIC == */
 | 
			
		||||
 | 
			
		||||
	int flags; /* 0 or bitwised-OR'ed of qse_httpd_peer_flag_t enumerators */
 | 
			
		||||
 | 
			
		||||
	qse_nwad_t nwad;
 | 
			
		||||
@ -189,6 +191,9 @@ struct qse_httpd_peer_t
 | 
			
		||||
	qse_httpd_hnd_t handle;
 | 
			
		||||
	qse_httpd_hnd_t handle2;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	/* == PRIVATE == */
 | 
			
		||||
 | 
			
		||||
	/* peer links for the proxy peer cache list in client.
 | 
			
		||||
	 * internal use only. don't mess with these */
 | 
			
		||||
	qse_httpd_peer_t* next;
 | 
			
		||||
 | 
			
		||||
@ -841,7 +841,7 @@ static void proxy_forward_client_input_to_peer (qse_httpd_t* httpd, qse_httpd_ta
 | 
			
		||||
			{
 | 
			
		||||
				if (httpd->errnum != QSE_HTTPD_EAGAIN)
 | 
			
		||||
				{
 | 
			
		||||
					DBGOUT_PROXY_ERROR (proxy, "Cannot send to peer");
 | 
			
		||||
					DBGOUT_PROXY_ERROR (proxy, "Send failure to peer");
 | 
			
		||||
 | 
			
		||||
					proxy->reqflags |= PROXY_REQ_FWDERR;
 | 
			
		||||
					qse_mbs_clear (proxy->reqfwdbuf); 
 | 
			
		||||
@ -1444,7 +1444,7 @@ printf ("task_main_proxy_5 trigger[0].mask=%d trigger[1].mask=%d trigger[2].mask
 | 
			
		||||
			if (httpd->errnum != QSE_HTTPD_EAGAIN)
 | 
			
		||||
			{
 | 
			
		||||
				/* can't return internal server error any more... */
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Cannot send to client");
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Send failrue to client");
 | 
			
		||||
				return -1;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
@ -1491,7 +1491,7 @@ printf ("task_main_proxy_4 trigger[0].mask=%d trigger[1].mask=%d trigger.cmask=%
 | 
			
		||||
			/* can't return internal server error any more... */
 | 
			
		||||
			if (httpd->errnum != QSE_HTTPD_EAGAIN)
 | 
			
		||||
			{
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Cannot receive from peer");
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Recv failure from peer");
 | 
			
		||||
				return -1;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
@ -1578,7 +1578,7 @@ printf ("task_main_proxy_4 trigger[0].mask=%d trigger[1].mask=%d trigger.cmask=%
 | 
			
		||||
			if (httpd->errnum != QSE_HTTPD_EAGAIN)
 | 
			
		||||
			{
 | 
			
		||||
				/* can't return internal server error any more... */
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Cannot send to client");
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Send failure to client");
 | 
			
		||||
				return -1;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
@ -1650,7 +1650,7 @@ printf ("task_main_proxy_3 trigger[0].mask=%d trigger[1].mask=%d trigger[2].mask
 | 
			
		||||
		{
 | 
			
		||||
			if (httpd->errnum != QSE_HTTPD_EAGAIN)
 | 
			
		||||
			{
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Cannot send to client");
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Send failure to client");
 | 
			
		||||
				return -1;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
@ -1738,7 +1738,7 @@ static int task_main_proxy_2 (
 | 
			
		||||
		{
 | 
			
		||||
			if (httpd->errnum != QSE_HTTPD_EAGAIN)
 | 
			
		||||
			{
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Cannot send to client");
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Send failure to client");
 | 
			
		||||
				goto oops;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
@ -1777,7 +1777,7 @@ static int task_main_proxy_2 (
 | 
			
		||||
		{
 | 
			
		||||
			if (httpd->errnum != QSE_HTTPD_EAGAIN)
 | 
			
		||||
			{
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Cannot receive from peer");
 | 
			
		||||
				DBGOUT_PROXY_ERROR (proxy, "Recv failure from peer");
 | 
			
		||||
				goto oops;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user