[prev in list] [next in list] [prev in thread] [next in thread] 

List:       privoxy-commits
Subject:    [privoxy-commits] current jbsockets.c,1.132,1.133
From:       Fabian Keil <fabiankeil () users ! sourceforge ! net>
Date:       2015-11-06 13:35:26
Message-ID: E1ZuhAu-0003rG-0U () sfs-ml-4 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv25114

Modified Files:
	jbsockets.c 
Log Message:
accept_connection(): Set NO_DELAY flag for the accepting socket

This significantly reduces the latency if the operating
system is not configured to set the flag by default.

For Windows the unnecessary delay has been reported
to be ~200ms while on ElectroBSD it's still 100ms.

Reported by Johan Sintorn in #894.


Index: jbsockets.c
===================================================================
RCS file: /cvsroot/ijbswa/current/jbsockets.c,v
retrieving revision 1.132
retrieving revision 1.133
diff -C2 -d -r1.132 -r1.133
*** jbsockets.c	6 Nov 2015 13:34:56 -0000	1.132
--- jbsockets.c	6 Nov 2015 13:35:24 -0000	1.133
***************
*** 1330,1333 ****
--- 1330,1335 ----
  #endif
  
+    set_no_delay_flag(afd);
+ 
     csp->cfd = afd;
  #ifdef HAVE_RFC2553


------------------------------------------------------------------------------
_______________________________________________
ijbswa-commits mailing list
ijbswa-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ijbswa-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic