aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 65cacbd175..fa6185b0ba 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1478,7 +1478,7 @@ module Net #:nodoc:
D 'Conn close because of keep_alive_timeout'
@socket.close
connect
- elsif @socket.io.wait_readable(0) && @socket.eof?
+ elsif @socket.io.to_io.wait_readable(0) && @socket.eof?
D "Conn close because of EOF"
@socket.close
connect