httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCárthaigh <colmm...@Redbrick.DCU.IE>
Subject Re: Linux + TCP_CORK + IPv6 = Broken [PATCH]
Date Wed, 04 Dec 2002 23:38:06 GMT
On Wed, Dec 04, 2002 at 11:05:21PM +0000, Joe Orton wrote:
> On Wed, Dec 04, 2002 at 08:21:36AM -0500, Jeff Trawick wrote:
> > Colm MacCárthaigh <colmmacc@Redbrick.DCU.IE> writes:
> > 
> > > On Wed, Dec 04, 2002 at 12:25:49PM +0000, Colm MacCárthaigh wrote:
> > > > My tests (and patch) were based on apr and apr-util from CVS , 
> > > > with the 2.0.43 codebase, because CVS seems broken right now.
> > > 
> > > stupid pre-test patch, here's the real one:
> > 
> > patch looks basically right to me...  probably is exactly right...
> > unless somebody beats me to it I'll play with it and commit it... nag
> > me directly if it isn't committed in 36 hours or so :)
> It would seem prudent to confirm this is a kernel bug before adding a
> workaround to APR.  APR's test/sendfile works fine here over IPv6
> between two 2.4.18-based kernels (RHL 8.0), and is doing basically the
> same thing as httpd, albeit without the TCP_NODELAY - maybe that makes a
> difference.

TCP_CORK and TCP_NODELAY are mutually exclusive anyway, so
it wouldnt make any difference :) As for it's status as
a kernel bug, I'm more and more certain that it is, I
don't think the kernel is recycling a file descriptor
properly (this is purely based on kdb, I havnt started 
trawling source yet). I'm more familiar with the apache 
source  (grep -c colmmacc CHANGES ;) , it's a while
since I played with the Linux kernel internals.

> Colm, can you try running the apr/test/sendfile binary with your
> machines?

It was one of the first things I tried when I was debugging,
unfortunately, it doesnt seem to support IPv6 from the client side
at all, I get:

colmmacc@byron:~/apr/test$ ./sendfile client blocking
Creating a test file...
apr_sockaddr_info_get()->670005/No address associated with hostname

colmmacc@byron:~/apr/test$ host -t AAAA    AAAA    2001:770:18:2:206:5BFF:FE8D:2402
colmmacc@byron:~/apr/test$ ./sendfile client blocking 2001:770:18:2:206:5BFF:FE8D:2402
Creating a test file...
apr_sockaddr_info_get()->670009/Address family for hostname not

Although, the server process does seem to be listening on IPv6. 

tcp        0      0 :::8021                 :::*	LISTEN

--        PubKey:  

View raw message