changed some error messages

This commit is contained in:
hyung-hwan 2014-11-11 15:51:13 +00:00
parent 643f84a8dd
commit 47d8710232
2 changed files with 12 additions and 7 deletions

View File

@ -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; typedef struct qse_httpd_peer_t qse_httpd_peer_t;
struct qse_httpd_peer_t struct qse_httpd_peer_t
{ {
/* == PUBLIC == */
int flags; /* 0 or bitwised-OR'ed of qse_httpd_peer_flag_t enumerators */ int flags; /* 0 or bitwised-OR'ed of qse_httpd_peer_flag_t enumerators */
qse_nwad_t nwad; qse_nwad_t nwad;
@ -189,6 +191,9 @@ struct qse_httpd_peer_t
qse_httpd_hnd_t handle; qse_httpd_hnd_t handle;
qse_httpd_hnd_t handle2; qse_httpd_hnd_t handle2;
/* == PRIVATE == */
/* peer links for the proxy peer cache list in client. /* peer links for the proxy peer cache list in client.
* internal use only. don't mess with these */ * internal use only. don't mess with these */
qse_httpd_peer_t* next; qse_httpd_peer_t* next;

View File

@ -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) 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; proxy->reqflags |= PROXY_REQ_FWDERR;
qse_mbs_clear (proxy->reqfwdbuf); 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) if (httpd->errnum != QSE_HTTPD_EAGAIN)
{ {
/* can't return internal server error any more... */ /* 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; 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... */ /* can't return internal server error any more... */
if (httpd->errnum != QSE_HTTPD_EAGAIN) if (httpd->errnum != QSE_HTTPD_EAGAIN)
{ {
DBGOUT_PROXY_ERROR (proxy, "Cannot receive from peer"); DBGOUT_PROXY_ERROR (proxy, "Recv failure from peer");
return -1; 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) if (httpd->errnum != QSE_HTTPD_EAGAIN)
{ {
/* can't return internal server error any more... */ /* 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; 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) if (httpd->errnum != QSE_HTTPD_EAGAIN)
{ {
DBGOUT_PROXY_ERROR (proxy, "Cannot send to client"); DBGOUT_PROXY_ERROR (proxy, "Send failure to client");
return -1; return -1;
} }
} }
@ -1738,7 +1738,7 @@ static int task_main_proxy_2 (
{ {
if (httpd->errnum != QSE_HTTPD_EAGAIN) if (httpd->errnum != QSE_HTTPD_EAGAIN)
{ {
DBGOUT_PROXY_ERROR (proxy, "Cannot send to client"); DBGOUT_PROXY_ERROR (proxy, "Send failure to client");
goto oops; goto oops;
} }
} }
@ -1777,7 +1777,7 @@ static int task_main_proxy_2 (
{ {
if (httpd->errnum != QSE_HTTPD_EAGAIN) if (httpd->errnum != QSE_HTTPD_EAGAIN)
{ {
DBGOUT_PROXY_ERROR (proxy, "Cannot receive from peer"); DBGOUT_PROXY_ERROR (proxy, "Recv failure from peer");
goto oops; goto oops;
} }
} }