lib/async/http/protocol/http11.rb in async-http-0.23.0 vs lib/async/http/protocol/http11.rb in async-http-0.23.1
- old
+ new
@@ -109,10 +109,10 @@
# Once we start writing the body, we can't recover if the request fails. That's because the body might be generated dynamically, streaming, etc.
write_body(request.body)
return Response.new(*read_response)
- rescue EOFError
+ rescue
# This will ensure that #reusable? returns false.
@stream.close
raise
end