From: Jeff Trawick Date: Thu, 16 Aug 2001 21:11:30 +0000 (+0000) Subject: check for timeout on socket read when we check for ECONNRESET and eof X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5139fca7c9c87d8e87a31cfeead5f5b1abc85d28;p=thirdparty%2Fapache%2Fhttpd.git check for timeout on socket read when we check for ECONNRESET and eof previously, we'd die on an assert() (really nasty for threaded MPM) when we hit a keepalive timeout for a browser like netscape which keeps the connection open git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@90244 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_io.c b/ssl_engine_io.c index 6dcad77ca00..64518103ea4 100644 --- a/ssl_engine_io.c +++ b/ssl_engine_io.c @@ -265,7 +265,8 @@ static apr_status_t churn (SSLFilterRec *pRec, if(len == 0) { /* Lazy frickin browsers just reset instead of shutting down. */ - if(ret == APR_EOF || APR_STATUS_IS_ECONNRESET(ret)) { + /* also gotta handle timeout of keepalive connections */ + if(ret == APR_EOF || APR_STATUS_IS_ECONNRESET(ret) || ret == APR_TIMEUP) { if(APR_BRIGADE_EMPTY(pRec->pbbPendingInput)) return APR_EOF; else