Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Aug 25, 2022
1 parent f013ddf commit e8d6864
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ConnectionPool.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,8 @@ Close `c` on EOF.
TODO: or if response data arrives when no request was sent (isreadable == false).
"""
function monitor_idle_connection(c::Connection)
tcp = c.io
if tcp isa SSLContext
tcp = tcp.bio
end
try
if eof(tcp) ;@debugv 3 "💀 Closed: $c"
if eof(tcpsocket(c.io)) ;@debugv 3 "💀 Closed: $c"
isopen(c.io) && close(c.io)
end
catch ex
Expand Down

0 comments on commit e8d6864

Please sign in to comment.