lib/reel/connection.rb in reel-0.0.1 vs lib/reel/connection.rb in reel-0.0.2

- old
+ new

@@ -9,10 +9,11 @@ BUFFER_SIZE = 4096 def initialize(socket) @socket = socket @keepalive = true + @parser = Request::Parser.new reset @response_state = :header @body_remaining = nil end @@ -94,10 +95,10 @@ end end def reset @request_state = :header - @parser = Request::Parser.new @request = nil + @parser.reset end end end