File tree 2 files changed +6
-6
lines changed
lib/async/http/protocol/http2
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ module HTTP
137
137
if trailer = request . headers [ 'trailer' ]
138
138
expect ( request . headers ) . not . to have_keys ( 'etag' )
139
139
140
- request_received . value = true
141
- request . finish
140
+ request_received . value = true ; pp request . body
141
+ pp finish : request . finish
142
142
143
143
expect ( request . headers ) . to have_keys ( 'etag' )
144
144
@@ -162,7 +162,7 @@ module HTTP
162
162
request_received . wait
163
163
headers . add ( 'etag' , 'abcd' )
164
164
165
- body . close
165
+ body . close_write
166
166
end
167
167
168
168
response = client . post ( "/" , headers , body )
@@ -187,7 +187,7 @@ module HTTP
187
187
response_received . wait
188
188
headers . add ( 'etag' , 'abcd' )
189
189
190
- body . close
190
+ body . close_write
191
191
end
192
192
193
193
::Protocol ::HTTP ::Response [ 200 , headers , body ]
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def process_headers(frame)
59
59
60
60
# TODO this might need to be in an ensure block:
61
61
if @input and frame . end_stream?
62
- @input . close ( $! )
62
+ @input . close_write
63
63
@input = nil
64
64
end
65
65
rescue ::Protocol ::HTTP2 ::HeaderError => error
@@ -149,7 +149,7 @@ def closed(error)
149
149
super
150
150
151
151
if @input
152
- @input . close ( error )
152
+ @input . close_write ( error )
153
153
@input = nil
154
154
end
155
155
You can’t perform that action at this time.
0 commit comments