chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Re: Very slow keep-alive behaviour on Spiffy


From: Florian Weimer
Subject: Re: [Chicken-users] Re: Very slow keep-alive behaviour on Spiffy
Date: Sat, 20 May 2006 11:15:11 +0200

* Graham Fawcett:

> Small content can be sent extremely efficiently if the entire HTTP
> response can be fit into a single IP frame -- that is, both the
> header+body is smaller than the MTU on the IP interface, and the
> message is sent at once to the output-port, not dribbled out via
> multiple write requests (which can force the output to be fragmented
> across multiple packets). It may be a Linux-specific problem -- there
> appear to be numerous posts on the Web about small-message passing
> over TCP on Linux being something of a bottleneck.

This is likely caused by the Nagle algorithm.  There are various
workarounds (TCP_CORK on Linux, or more portable variants such as
TCP_NODELAY and writev/sendmsg).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]