diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-10-07 08:12:36 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-07 08:14:14 +0000 |
commit | e99178ef89eca9e46b73484aaf9733259dac9dca (patch) | |
tree | 52098695f4b7fff6ce11839edcd929cda9204849 /ext | |
parent | eb5ba488422020568e5ccf650891d7fccce7238f (diff) | |
download | unicorn-e99178ef89eca9e46b73484aaf9733259dac9dca.tar.gz |
We cannot clear the buffer between requests because clients may send multiple requests that get taken in one read()/recv() call.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/unicorn_http/unicorn_http.rl | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |