Skip to content

Commit 7022ec2

Browse files
committed
Ensure input and output is closed appropriately on error.
1 parent 2505ca7 commit 7022ec2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/async/http/protocol/http2/output.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def stream(task)
8383
@body.call(stream)
8484
rescue => error
8585
self.close(error)
86+
raise
8687
end
8788

8889
# Reads chunks from the given body and writes them to the stream as fast as possible.

0 commit comments

Comments
 (0)