about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-07 08:12:36 +0000
committerEric Wong <normalperson@yhbt.net>2010-10-07 08:14:14 +0000
commite99178ef89eca9e46b73484aaf9733259dac9dca (patch)
tree52098695f4b7fff6ce11839edcd929cda9204849 /ext
parenteb5ba488422020568e5ccf650891d7fccce7238f (diff)
downloadunicorn-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.rl1
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;
 }