]> granicus.if.org Git - apache/commitdiff
TODO: re-implement SAFEREAD external to BUFF using a layer
authorRoy T. Fielding <fielding@apache.org>
Thu, 26 Aug 1999 16:02:06 +0000 (16:02 +0000)
committerRoy T. Fielding <fielding@apache.org>
Thu, 26 Aug 1999 16:02:06 +0000 (16:02 +0000)
Submitted by: Dean Gaudet

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83776 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 109e948a711f24fe1746c43c5c9dbdb16db28a5a..b2af9fc7420c13a347b722272d38b175c34280e5 100644 (file)
@@ -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);