Skip to content

Commit 2cdcab2

Browse files
authored
fix typo: read_nonblock call on SSLSocket
sorry, typo
1 parent f525ef6 commit 2cdcab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2464,7 +2464,7 @@ def begin_transport(req)
24642464
connect
24652465
end
24662466
while @socket.io.to_io.wait_readable(0)
2467-
if @socket.io.to_io.read_nonblock(1, exception: false) == nil
2467+
if @socket.io.read_nonblock(1, exception: false) == nil
24682468
debug "Conn close because of EOF"
24692469
@socket.close
24702470
connect

0 commit comments

Comments
 (0)