From: Jeff Trawick Date: Sun, 22 Oct 2000 13:20:36 +0000 (+0000) Subject: Get rid of a couple of buff-isms -- setting the B_EOUT flag in a couple X-Git-Tag: APACHE_2_0_ALPHA_8~283 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=902d55fc1416e7a8d64eb617a16e639b5c19b153;p=apache Get rid of a couple of buff-isms -- setting the B_EOUT flag in a couple of places and doing ap_bread() in ap_lingering_close. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86700 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 05a6150e82..a75f6f2271 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -115,7 +115,6 @@ static void check_first_conn_error(const request_rec *r, const char *operation, ap_log_rerror(APLOG_MARK, APLOG_INFO, status, r, "client stopped connection before %s completed", operation); - ap_bsetflag(r->connection->client, B_EOUT, 1); r->connection->aborted = 1; } } diff --git a/server/connection.c b/server/connection.c index 32fa4bc409..33609a7350 100644 --- a/server/connection.c +++ b/server/connection.c @@ -160,7 +160,6 @@ void ap_lingering_close(conn_rec *c) */ if (c->aborted || !(c->client)) { - ap_bsetflag(c->client, B_EOUT, 1); ap_bclose(c->client); return; } @@ -189,8 +188,8 @@ void ap_lingering_close(conn_rec *c) timeout = MAX_SECS_TO_LINGER * APR_USEC_PER_SEC; for (;;) { apr_setsocketopt(c->client_socket, BO_TIMEOUT, timeout); - rc = ap_bread(c->client, dummybuf, sizeof(dummybuf), - &nbytes); + nbytes = sizeof(dummybuf); + rc = apr_recv(c->client_socket, dummybuf, &nbytes); if (rc != APR_SUCCESS || nbytes == 0) break; /* how much time has elapsed? */