cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] sws.c and undefined TCP_NODELAY (Red Hat 7.2 Linux 2.4 i686 lcc 4.2 glibc 2.2.5)

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 3 Oct 2007 11:54:15 -0700

On Wed, Oct 03, 2007 at 04:38:47PM +0100, Jamie Lokier wrote:
> That platform definitely has TCP_NODELAY somewhere. TCP_NODELAY is a
> extremely old and widespread option, and has certainly been in every
> version of Linux which has Glibc.

It does have TCP_NODELAY, but it's defined in a header file along with an
unrelated struct that uses non-int bitfields, and lcc bombs out on that.
The result is that configure undefines HAVE_NETINET_TCP_H and it doesn't
get loaded in sws.c (or connect.c for that matter). Since TCP_NODELAY
is not a critical feature in the web server, I think Yang's patch is
the best solution.

> Are there any platforms which Curl supports which don't have TCP_NODELAY?

curl runs on an awful large number of systems (55 are listed in the INSTALL
file alone). I wouldn't be at all surprised if at least one of them
doesn't have it.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-10-03