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.
@input
nil
1 parent 0c00924 commit 710d883Copy full SHA for 710d883
lib/async/http/protocol/http2/stream.rb
@@ -61,10 +61,8 @@ def process_headers(frame)
61
self.receive_initial_headers(super, frame.end_stream?)
62
end
63
64
- # TODO this might need to be in an ensure block:
65
- if input = @input and frame.end_stream?
66
- @input = nil
67
- input.close_write
+ if @input and frame.end_stream?
+ @input.close_write
68
69
rescue ::Protocol::HTTP2::HeaderError => error
70
Console.logger.debug(self, error)
@@ -103,7 +101,6 @@ def process_data(frame)
103
101
104
102
if frame.end_stream?
105
@input.close_write
106
107
108
109
0 commit comments