Skip to content

Commit

Permalink
Don't hold on to response.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 21, 2019
1 parent 00abf32 commit 63fe6ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/async/http/protocol/http1/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def each(task: Task.current)
# At this point, the request body is hijacked, so we don't want to call #finish below.
request = nil

# We also don't want to hold on to the response object:
response = nil

body.call(stream)
else
write_body(@version, body, head)
Expand Down

0 comments on commit 63fe6ef

Please sign in to comment.