httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <>
Subject client connection questions
Date Wed, 02 Sep 1998 14:10:46 GMT
A few questions:

If ap_rwrite/ap_bwrite returns -1, does that *always* mean the connection
is broken?  

r->connection->aborted is only set if a soft_timeout happens, why not with
hard_timeout too?

What is the "right" test to find out if the connection has been broken? 

Here are two checks that seem right by eyeballing the source code, but
leave eyes sore.

if(r->connection->client->flags & B_EOUT) {
    ... connection was broken ...

if(r->connection->client->fd < 0) {
     ... connection was broken ...

Both hard_timeout() and soft_timeout() will set the B_EOUT flag and
client->fd is set to -1 when ap_bclose is called in both cases.


View raw message