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 someone could fix the

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 be done

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

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

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 do

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

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