Skip to content

Commit 33054ed

Browse files
example server: do not delay closing socket on goaway frame
this causes the truffleruby build to fail, as it expects to either receive a ping ack or have the connection closed
1 parent dd1e475 commit 33054ed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

example/server.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@
6262
end
6363

6464
conn.on(:goaway) do
65-
Thread.start do
66-
sleep(1)
67-
sock.close
68-
end
65+
sock.close
6966
end
7067

7168
conn.on(:stream) do |stream|

0 commit comments

Comments
 (0)