[xdebug-general] 1.3.2: Speed improvement by using TCP_NODELAY

From: Christof J. Reetz <cjr[@]netplan.de>
Date: Tue Aug 17 2004 - 16:33:14 CEST

Dear Derick,

during debugging of a Web Page with lots of (yet) undefined variables, a lot of xDebug Signal events
occurred, each on resulting in a transmission to my xDebug client. I've noticed a 100-300 ms delay
after each 'continue' command, before the next Signal arrived. That smelled like the Nagle Algorithm.

Therefore I've added these lines in xdebug_com.c in xdebug_create_socket immediately before the

        return sockfd

line:

         {
                 long optval = 1;
                 setsockopt (sockfd, IPPROTO_TCP, TCP_NODELAY, & optval, sizeof (optval));
         }

Now all outgoing traffic is send immediately and the Load Time for my Web Page decreased from 8
Seconds to 1 Second.

Hope that helps.

-- 
Christof J. Reetz
NETPLAN Reetz & Partner GmbH
Prinz-Carl-Anlage 20
67547 Worms
06241-955231
Received on Tue Aug 17 16:33:25 2004

This archive was generated by hypermail 2.1.8 : Sun Nov 23 2008 - 15:00:10 CET