Skip to content

Commit

Permalink
Revert "When monitoring idle connections, only call eof on tcp socket (
Browse files Browse the repository at this point in the history
…#912)" (#914)

This reverts commit 976fab5.
  • Loading branch information
quinnj committed Aug 26, 2022
1 parent 0c2a782 commit f1e4591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ConnectionPool.jl
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ TODO: or if response data arrives when no request was sent (isreadable == false)
"""
function monitor_idle_connection(c::Connection)
try
if eof(tcpsocket(c.io)) ;@debugv 3 "💀 Closed: $c"
isopen(c.io) && close(c.io)
if eof(c.io) ;@debugv 3 "💀 Closed: $c"
close(c.io)
end
catch ex
@try Base.IOError close(c.io)
Expand Down

0 comments on commit f1e4591

Please sign in to comment.