From aaba44390d454e519b90549c431b6a21d8b15803 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sun, 6 Jan 2008 12:15:34 -0800 Subject: [PATCH] Fix reading of requests larger than a chunk's worth. darcs-hash:20080106201534-4cc09-0993258de2ef15a83a4022b448d9735b35fe04ba.gz --- client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index c5629a9..cda154e 100644 --- a/client.c +++ b/client.c @@ -412,7 +412,8 @@ httpClientHandler(int status, int rc = 0; if(!(connection->flags & CONN_BIGREQBUF)) rc = httpConnectionBigifyReqbuf(connection); - if(rc > 0) { + if((connection->flags & CONN_BIGREQBUF) && + connection->reqlen < bigBufferSize) { do_stream(IO_READ, connection->fd, connection->reqlen, connection->reqbuf, bigBufferSize, httpClientHandler, connection); -- 2.11.4.GIT