patch: half closed stuff

From: Adrian Chadd <adrian@dont-contact.us>
Date: Sun, 22 Feb 2004 19:51:47 -0700

Hi,

Here's a patch which fixes the FTP half-closed crash I've seen.
It does this:

* exports a commIfHalfClosed(fd) routine..
* .. which I then use in ConnStateData::readSomeData() to
  make 100% sure I'm not reading any data from that fd..
* Started calling AbortChecker::doIOLoop() once a second
  from an event.

The background with this: my FTP connections were being requested
with a Keepalive header and so, even though the read side had
marked the FD as half-closed, the write side completed, discovered
there's a keepalive and then attempted to read some more data.

Comments?

Adrian

Received on Sun Feb 22 2004 - 19:51:49 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:04 MST