diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-05-08 22:57:23 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-05-08 22:57:23 +0000 |
commit | 421f5a8573484b1203fceebc65aee5d011d63c63 (patch) | |
tree | 79c0a4ae2fafa76369e4a3ffede569c281591822 /ext | |
parent | c3c79fcdb71c599e426f9ce83d45dc8cc3d9cd3c (diff) | |
download | unicorn-421f5a8573484b1203fceebc65aee5d011d63c63.tar.gz |
This could allow servers with persistent connection support[1] to support our check_client_connection in the future. [1] - Rainbows!/zbatery, possibly others
Diffstat (limited to 'ext')
-rw-r--r-- | ext/unicorn_http/unicorn_http.rl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl index 1a8003f..3529740 100644 --- a/ext/unicorn_http/unicorn_http.rl +++ b/ext/unicorn_http/unicorn_http.rl @@ -732,10 +732,8 @@ static VALUE HttpParser_parse(VALUE self) struct http_parser *hp = data_get(self); VALUE data = hp->buf; - if (HP_FL_TEST(hp, TO_CLEAR)) { - http_parser_init(hp); - rb_funcall(hp->env, id_clear, 0); - } + if (HP_FL_TEST(hp, TO_CLEAR)) + HttpParser_clear(self); http_parser_execute(hp, RSTRING_PTR(data), RSTRING_LEN(data)); if (hp->offset > MAX_HEADER_LEN) |