Re: half-closed connections?

2004-02-20 Thread Henrik Nordstrom
On Fri, 20 Feb 2004, Adrian Chadd wrote: > * in ConnStateData::readSomeData(), is it ok to just return if the socket > is marked as half closed? Will a half-closed socket ever be re-opened > somehow? To explain half-closed connections A TCP connection consists of two independent flows of tr

Re: half-closed connections?

2004-02-20 Thread Henrik Nordstrom
On Fri, 20 Feb 2004, Adrian Chadd wrote: > * i start mirroring something via lftp > * lftp uses Keepalive in its HTTP requests > * I hit ctrl-C in lftp > * a client fd does this: > - read handler gets called, size 0 > - commMarkHalfClosed() is called > - ... no more IO is scheduled > - wri

Re: half-closed connections?

2004-02-20 Thread Adrian Chadd
On Fri, Feb 20, 2004, Henrik Nordstrom wrote: > On Fri, 20 Feb 2004, Adrian Chadd wrote: > > > Is there actually a valid reason for squid to even support > > half-closed connections any more? > > Personally I don't beleive in half-closed connections in HTTP, but some > people like to be able to

Re: half-closed connections?

2004-02-20 Thread Henrik Nordstrom
On Fri, 20 Feb 2004, Adrian Chadd wrote: > Is there actually a valid reason for squid to even support > half-closed connections any more? Personally I don't beleive in half-closed connections in HTTP, but some people like to be able to do things like (echo "GET http://www.squid-cache.org HTTP/1

half-closed connections?

2004-02-20 Thread Adrian Chadd
Is there actually a valid reason for squid to even support half-closed connections any more? It just seems like an utter pain in the butt to support correctly.. I'm trying to track down a bug in the FTP paths relating to incorrect half-closed handling.. Adrian

Re: epoll

2004-02-20 Thread Adrian Chadd
On Fri, Feb 20, 2004, Henrik Nordstrom wrote: > On Thu, 19 Feb 2004, Adrian Chadd wrote: > > > On Fri, Feb 20, 2004, Robert Collins wrote: > > > > > just commit it. > > > > ok. > > Except for the first segment in the patch (-lepoll removed) > Crap, must've missed that. I'll put it back. Ad

Re: epoll

2004-02-20 Thread Henrik Nordstrom
On Thu, 19 Feb 2004, Adrian Chadd wrote: > Done. Can someone bootstrap it and commit it? bootstrapping is done automatically before each nightly snapshot. Regards Henrik

Re: epoll

2004-02-20 Thread Henrik Nordstrom
On Thu, 19 Feb 2004, Adrian Chadd wrote: > On Fri, Feb 20, 2004, Robert Collins wrote: > > > just commit it. > > ok. Except for the first segment in the patch (-lepoll removed) Regards Henrik

Re: epoll

2004-02-20 Thread Adrian Chadd
On Fri, Feb 20, 2004, Kinkie wrote: > > yup, this has to do with the order we're checking poll/select/epoll/kqueue. > > Here's my configure.in patch, it seems to do the right thing. > > Give it a shot? > > If it's possible at all, I think it would be best if the polling method > detection could b

Re: epoll

2004-02-20 Thread Kinkie
Adrian Chadd <[EMAIL PROTECTED]> writes: > On Thu, Feb 19, 2004, David Nicklay wrote: >> Hi, >> >> I second Henrik's suggestion. The epoll stuff actually works on 2.4 >> kernels with a patch, and almost none of those have the new epoll stuff >> in glibc. >> >> Also, it would be nice if someon