-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
./h2spec --version
Version: 2.3.0 (cb03b47)
I have a very simple code: a socket accepting and printing the metadata. In ruby:
require "socket"
puts "Starting server on port 9000"
server = TCPServer.new(9000)
loop do
sock = server.accept
while !sock.closed? && !(sock.eof? rescue true) # rubocop:disable Style/RescueModifier
puts sock.readpartial(1024).inspect
end
endWhen running the aforementioned spec, it hangs for 5 seconds, after which it opens a connection and immediately closes.
This doesn't seem correct, can anyone confirm it's a bug?
Metadata
Metadata
Assignees
Labels
No labels