From: Roy T. Fielding Date: Thu, 26 Aug 1999 16:02:06 +0000 (+0000) Subject: TODO: re-implement SAFEREAD external to BUFF using a layer X-Git-Tag: PRE_APR_CHANGES~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49d31d395ed793d2e6668ed7d1b2a7a186b161ba;p=apache TODO: re-implement SAFEREAD external to BUFF using a layer Submitted by: Dean Gaudet git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83776 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 109e948a71..b2af9fc742 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -795,10 +795,12 @@ static int read_request_line(request_rec *r) * read(). B_SAFEREAD ensures that the BUFF layer flushes if it will * have to block during a read. */ - ap_bsetflag(conn->client, B_SAFEREAD, 1); + /* TODO: re-implement SAFEREAD external to BUFF using a layer */ + /* //ap_bsetflag(conn->client, B_SAFEREAD, 1); */ + ap_bflush(conn->client); while ((len = getline(l, sizeof(l), conn->client, 0)) <= 0) { if ((len < 0) || ap_bgetflag(conn->client, B_EOF)) { - ap_bsetflag(conn->client, B_SAFEREAD, 0); + /* //ap_bsetflag(conn->client, B_SAFEREAD, 0); */ /* this is a hack to make sure that request time is set, * it's not perfect, but it's better than nothing */ @@ -811,7 +813,7 @@ static int read_request_line(request_rec *r) signal(SIGUSR1, SIG_IGN); #endif - ap_bsetflag(conn->client, B_SAFEREAD, 0); + /* //ap_bsetflag(conn->client, B_SAFEREAD, 0); */ r->request_time = time(NULL); r->the_request = ap_pstrdup(r->pool, l);