diff options
author | Eric Wong <e@80x24.org> | 2022-12-15 20:52:54 +0000 |
---|---|---|
committer | Eric Wong <mwrap-perl@80x24.org> | 2022-12-16 09:27:49 +0000 |
commit | 000f631f8096d8140135eca0daef8c622f89177a (patch) | |
tree | f83254c42ec7f916ab77f05a11559ad034100eb8 | |
parent | dcafd48df9d57198943669412fcd98b9f958b3b7 (diff) | |
download | mwrap-000f631f8096d8140135eca0daef8c622f89177a.tar.gz |
It's not worth it. Arguably, supporting persistent connections for a AF_LOCAL-only daemon is overkill.
-rw-r--r-- | httpd.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |