mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Reuse one HttpParser object across persistent requests
This commit is contained in:
parent
e8372fc431
commit
816daf7977
1 changed files with 4 additions and 1 deletions
|
@ -149,9 +149,12 @@ module Puma
|
|||
end
|
||||
|
||||
def process_client(client)
|
||||
parser = HttpParser.new
|
||||
|
||||
begin
|
||||
while true
|
||||
parser = HttpParser.new
|
||||
parser.reset
|
||||
|
||||
env = @proto_env.dup
|
||||
data = client.readpartial(CHUNK_SIZE)
|
||||
nparsed = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue