X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=jcc.c;h=7c58fecf2701fe97a4c1a8bf093b5cba6db5ff4d;hb=6c85dac44c441a078e6e3b9f6f33408cfa5667e1;hp=32e6f0d8449dd7d01c16978871668cc611c6292c;hpb=66287346ba7a6d1ca2335ea254ec9f344e4aeb49;p=privoxy.git diff --git a/jcc.c b/jcc.c index 32e6f0d8..7c58fecf 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.387 2012/09/04 08:37:51 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.389 2012/10/12 11:19:35 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -2243,8 +2243,8 @@ static void chat(struct client_state *csp) * we can parse the headers we just continue here. */ log_error(LOG_LEVEL_CONNECT, - "Continuing buffering headers. Bytes most recently read: %d.", - len); + "Continuing buffering server headers from socket %d. " + "Bytes most recently read: %d.", csp->cfd, len); continue; } } @@ -2607,7 +2607,7 @@ static void serve(struct client_state *csp) remember_connection(&csp->server_connection); csp->server_connection.sfd = JB_INVALID_SOCKET; - close_socket(csp->cfd); + drain_and_close_socket(csp->cfd); csp->cfd = JB_INVALID_SOCKET; privoxy_mutex_lock(&connection_reuse_mutex); if (!monitor_thread_running) @@ -2666,7 +2666,7 @@ static void serve(struct client_state *csp) "Keep-alive: %u, Socket alive: %u. Data available: %u.", csp->cfd, 0 != (csp->flags & CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE), socket_is_still_alive(csp->cfd), data_is_available(csp->cfd, 0)); - close_socket(csp->cfd); + drain_and_close_socket(csp->cfd); } csp->flags &= ~CSP_FLAG_ACTIVE;