From: Fabian K. <fab...@us...> - 2012-07-27 17:31:13
|
Update of /cvsroot/ijbswa/current In directory vz-cvs-4.sog:/tmp/cvs-serv1623 Modified Files: jcc.c Log Message: In serve(), log the client socket and its condition before closing it This makes it more obvious that the socket actually gets closed and should help when diagnosing problems like #3464439. Index: jcc.c =================================================================== RCS file: /cvsroot/ijbswa/current/jcc.c,v retrieving revision 1.383 retrieving revision 1.384 diff -C2 -d -r1.383 -r1.384 *** jcc.c 23 Jul 2012 12:55:25 -0000 1.383 --- jcc.c 27 Jul 2012 17:31:10 -0000 1.384 *************** *** 2631,2634 **** --- 2631,2638 ---- if (csp->cfd != JB_INVALID_SOCKET) { + log_error(LOG_LEVEL_CONNECT, "Closing client socket %d. " + "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); } |