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

From: Derick Rethans <derick[@]xdebug.org>
Date: Tue, 17 Aug 2004 19:46:00 +0200 (CEST)

On Tue, 17 Aug 2004, Christof J. Reetz wrote:

> 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.

Sounds like a good idea. Do you know if this is portable to atleast
freebsd, macosx and windows (besides Linux)?

regards,
Derick

-- 
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Tue Aug 17 2004 - 19:46:05 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:03 BST