From e99178ef89eca9e46b73484aaf9733259dac9dca Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 7 Oct 2010 08:12:36 +0000 Subject: http: fix behavior with pipelined requests We cannot clear the buffer between requests because clients may send multiple requests that get taken in one read()/recv() call. --- ext/unicorn_http/unicorn_http.rl | 1 - 1 file changed, 1 deletion(-) (limited to 'ext') diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl index 1e81c34..236fbaa 100644 --- a/ext/unicorn_http/unicorn_http.rl +++ b/ext/unicorn_http/unicorn_http.rl @@ -496,7 +496,6 @@ static VALUE HttpParser_reset(VALUE self) http_parser_init(hp); rb_funcall(hp->env, id_clear, 0); - rb_str_set_len(hp->buf, 0); return Qnil; } -- cgit v1.2.3-24-ge0c7