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 b7c5869 commit 9e82856Copy full SHA for 9e82856
lib/net/http.rb
@@ -2495,7 +2495,7 @@ def begin_transport(req)
2495
debug 'Conn close because of keep_alive_timeout'
2496
@socket.close
2497
connect
2498
- elsif @socket.io.to_io.wait_readable(0) && @socket.eof?
+ elsif @socket.io.to_io.wait_readable(0) && @socket.io.read_nonblock(1, exception: false).nil?
2499
debug "Conn close because of EOF"
2500
2501
0 commit comments