mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Reuse parser when starting a new request with existing data
This commit is contained in:
parent
60a5478310
commit
6d1d60abfa
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ module Puma
|
|||
|
||||
if data.size > nparsed
|
||||
data.slice!(0, nparsed)
|
||||
parser = HttpParser.new
|
||||
parser.reset
|
||||
env = @proto_env.dup
|
||||
nparsed = 0
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue