From aebda4acedae4fd1776cfb126aa6cf0a1b42d95c Mon Sep 17 00:00:00 2001 From: "roberto@precise64" Date: Mon, 14 May 2012 18:52:27 +0200 Subject: [PATCH] fixed a regression with http pipelined requests --- plugins/http/http.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/http/http.c b/plugins/http/http.c index 23846853..9bde121c 100644 --- a/plugins/http/http.c +++ b/plugins/http/http.c @@ -607,6 +607,11 @@ void uwsgi_http_switch_events(struct uwsgi_corerouter *ucr, struct corerouter_se break; } + // avoid pipelined input + if (hs->received_body >= cs->post_cl) { + break; + } + if (len + hs->received_body > cs->post_cl) { len = cs->post_cl - hs->received_body;