We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rescue
1 parent bb87b1c commit ce9db4eCopy full SHA for ce9db4e
lib/async/http/protocol/http1/server.rb
@@ -151,6 +151,9 @@ def each(task: Task.current)
151
# Do not remove this line or you will unleash the gods of concurrency hell.
152
task.yield
153
end
154
+ rescue => error
155
+ # We store error (as a local variable) for later use in the ensure block.
156
+ raise
157
ensure
158
body&.close(error)
159
0 commit comments