Skip to content

Commit 48bd08d

Browse files
committed
Fix error handling during server failure.
1 parent 452c813 commit 48bd08d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/async/http/protocol/http1/server.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def each(task: Task.current)
110110
# This ensures we yield at least once every iteration of the loop and allow other fibers to execute.
111111
task.yield
112112
rescue => error
113+
raise
113114
ensure
114115
body&.close(error)
115116
end

0 commit comments

Comments
 (0)