current jcc.c,1.464,1.465

Fabian Keil via ijbswa-commits <[email protected]> Mon, 26 Jun 2017 12:14:27 +0000
Newsgroups gmane.comp.web.privoxy.cvs
Message-ID <[email protected]>
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21854

Modified Files:
	jcc.c 
Log Message:
Improve 'socket timeout reached' message

Log the timeout that was triggered and downgrade the
log level to LOG_LEVEL_CONNECT to reduce the log noise
with common debug settings.

The timeout isn't necessary the result of an error and
usually merely indicates that Privoxy's socket timeout
is lower than the relevant timeouts used by client and
server.

Sponsored by: Robert Klemme


Index: jcc.c
===================================================================
RCS file: /cvsroot/ijbswa/current/jcc.c,v
retrieving revision 1.464
retrieving revision 1.465
diff -C2 -d -r1.464 -r1.465
*** jcc.c	26 Jun 2017 12:13:52 -0000	1.464
--- jcc.c	26 Jun 2017 12:14:25 -0000	1.465
***************
*** 2117,2122 ****
        if (n == 0)
        {
!          log_error(LOG_LEVEL_ERROR,
!             "Didn't receive data in time: %s", http->url);
           if ((byte_count == 0) && (http->ssl == 0))
           {
--- 2117,2122 ----
        if (n == 0)
        {
!          log_error(LOG_LEVEL_CONNECT, "Socket timeout %d reached: %s",
!             csp->config->socket_timeout, http->url);
           if ((byte_count == 0) && (http->ssl == 0))
           {


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot