From ea4324bbb6d3388c39f80906c85501feee3cb541 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 8 May 2013 18:55:16 +0200 Subject: waitress: Close connection if body has been received MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now libwaitress won’t wait until the server closes the connection if the request body has been received. Multiple requests per connection are not supported anyway. Fixes #321. Thanks to Michael Stowe. --- src/libwaitress/waitress.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libwaitress/waitress.h') diff --git a/src/libwaitress/waitress.h b/src/libwaitress/waitress.h index 9075047..bd80134 100644 --- a/src/libwaitress/waitress.h +++ b/src/libwaitress/waitress.h @@ -110,6 +110,7 @@ typedef struct { WaitressReturn_t readWriteRet; size_t contentLength, contentReceived, chunkSize; + bool contentLengthKnown; enum {CHUNKSIZE = 0, DATA = 1} chunkedState; char *buf; -- cgit v1.2.3