about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-12-15 20:52:54 +0000
committerEric Wong <mwrap-perl@80x24.org>2022-12-16 09:27:49 +0000
commit000f631f8096d8140135eca0daef8c622f89177a (patch)
treef83254c42ec7f916ab77f05a11559ad034100eb8
parentdcafd48df9d57198943669412fcd98b9f958b3b7 (diff)
downloadmwrap-000f631f8096d8140135eca0daef8c622f89177a.tar.gz
It's not worth it.  Arguably, supporting persistent connections
for a AF_LOCAL-only daemon is overkill.
-rw-r--r--httpd.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/httpd.h b/httpd.h
index 58db400..9b4ebe7 100644
--- a/httpd.h
+++ b/httpd.h
@@ -771,11 +771,10 @@ static enum mw_qev h1_drain_input(struct mw_h1 *h1, struct mw_h1req *h1r)
         if (h1r) { /* initial */
                 ssize_t overread = h1r->rbuf_len - h1r->pret;
                 mwrap_assert(overread >= 0);
-                if ((size_t)overread <= h1->in_len) {
+                if ((size_t)overread <= h1->in_len)
                         h1->in_len -= overread;
-                } else { /* TODO: deal with pipelined requests */
+                else /* pipelining not supported */
                         return h1_400(h1);
-                }
         } else { /* continue dealing with a trickle */
                 h1r = h1->h1r;
                 mwrap_assert(h1r);