Skip to content

Commit f1e4591

Browse files
authored
Revert "When monitoring idle connections, only call eof on tcp socket (#912)" (#914)
This reverts commit 976fab5.
1 parent 0c2a782 commit f1e4591

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ConnectionPool.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ TODO: or if response data arrives when no request was sent (isreadable == false)
261261
"""
262262
function monitor_idle_connection(c::Connection)
263263
try
264-
if eof(tcpsocket(c.io)) ;@debugv 3 "💀 Closed: $c"
265-
isopen(c.io) && close(c.io)
264+
if eof(c.io) ;@debugv 3 "💀 Closed: $c"
265+
close(c.io)
266266
end
267267
catch ex
268268
@try Base.IOError close(c.io)

0 commit comments

Comments
 (0)