lib/reel/response/writer.rb in reel-0.5.0 vs lib/reel/response/writer.rb in reel-0.6.0.pre1
- old
+ new
@@ -10,10 +10,10 @@
# Write body chunks directly to the connection
def write(chunk)
chunk_header = chunk.bytesize.to_s(16)
@socket << chunk_header + CRLF
@socket << chunk + CRLF
- rescue IOError, Errno::EPIPE, Errno::ECONNRESET => ex
+ rescue IOError, SystemCallError => ex
raise Reel::SocketError, ex.to_s
end
# Finish the response and reset the response state to header
def finish_response