Re: delivering EOS event up to the FetchSM state machine

2011-12-17 Thread James Peach
On 14/12/2011, at 10:33 PM, James Peach wrote: > Hi all, > > I've been looking at an issue where TSFetchUrl does not deliver the EOS event > to the caller until long after the origin server closes the read socket. I > made a small change to read_from_net() so that it notices when read(2) > ret

delivering EOS event up to the FetchSM state machine

2011-12-15 Thread James Peach
Hi all, I've been looking at an issue where TSFetchUrl does not deliver the EOS event to the caller until long after the origin server closes the read socket. I made a small change to read_from_net() so that it notices when read(2) returns 0 even if it returned > 0 a previous time round the loo