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.
#flush
1 parent 57ef23f commit 4356975Copy full SHA for 4356975
lib/protocol/http2/connection.rb
@@ -214,16 +214,20 @@ def receive_goaway(frame)
214
def write_frame(frame)
215
synchronize do
216
@framer.write_frame(frame)
217
- @framer.flush
218
end
+
219
+ # The IO is already synchronized, and we don't want additional contention.
220
+ @framer.flush
221
222
223
def write_frames
224
if @framer
225
226
yield @framer
227
228
229
+ # See above note.
230
231
else
232
raise EOFError, "Connection closed!"
233
0 commit comments