1
0
Fork 0
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:
Evan Phoenix 2011-12-01 14:48:14 -08:00
parent 60a5478310
commit 6d1d60abfa

View file

@ -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