X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=jcc.c;h=34327f280db47a94d10ad99ab7b52b62fe734a00;hp=ac13215ac0eb02f3e53e91b944cb7289f92f1a00;hb=c4fe56c65d954f517b56ab46165163cab92e5daa;hpb=60c5d95c4584689ec650b97a5adb706a55d7950d diff --git a/jcc.c b/jcc.c index ac13215a..34327f28 100644 --- a/jcc.c +++ b/jcc.c @@ -838,7 +838,7 @@ static void send_crunch_response(const struct client_state *csp, struct http_res || write_socket_delayed(csp->cfd, rsp->body, rsp->content_length, get_write_delay(csp))) { /* There is nothing we can do about it. */ - log_error(LOG_LEVEL_ERROR, + log_error(LOG_LEVEL_CONNECT, "Couldn't deliver the error message for %s through client socket %d: %E", http->url, csp->cfd); } @@ -1945,7 +1945,7 @@ static jb_err parse_client_request(struct client_state *csp) * Parameters : * 1 : csp = Current client state (buffers, headers, etc...) * - * Returns : 0 on success, anything else is na error. + * Returns : 0 on success, anything else is an error. * *********************************************************************/ static int send_http_request(struct client_state *csp) @@ -2522,9 +2522,9 @@ static void handle_established_connection(struct client_state *csp) hdrlen = strlen(hdr); if (write_socket_delayed(csp->cfd, hdr, hdrlen, write_delay) - || ((flushed = flush_iob(csp->cfd, csp->iob, write_delay) < 0) - || (write_socket_delayed(csp->cfd, csp->receive_buffer, - (size_t)len, write_delay)))) + || ((flushed = flush_iob(csp->cfd, csp->iob, write_delay)) < 0) + || write_socket_delayed(csp->cfd, csp->receive_buffer, + (size_t)len, write_delay)) { log_error(LOG_LEVEL_CONNECT, "Flush header and buffers to client failed: %E");