lib/reel/request/parser.rb in reel-0.5.0 vs lib/reel/request/parser.rb in reel-0.6.0.pre1

- old
+ new

@@ -41,10 +41,14 @@ @currently_responding || @currently_reading end def readpartial(size = @buffer_size) bytes = @socket.readpartial(size) - @parser << bytes + begin + @parser << bytes + rescue ArgumentError + raise Errno::EPIPE + end end # # HTTP::Parser callbacks #