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.
1 parent 7ccef53 commit 03c9dcbCopy full SHA for 03c9dcb
lib/protocol/http2/connection.rb
@@ -215,20 +215,20 @@ def receive_goaway(frame)
215
def write_frame(frame)
216
synchronize do
217
@framer.write_frame(frame)
218
+
219
+ # I tried moving this outside the synchronize block but it caused a deadlock.
220
+ @framer.flush
221
end
-
- # The IO is already synchronized, and we don't want additional contention.
- @framer.flush
222
223
224
def write_frames
225
if @framer
226
227
yield @framer
228
229
+ # See note above.
230
231
- # See above note.
232
else
233
raise EOFError, "Connection closed!"
234
0 commit comments