From f1e4591cc88123d5648d1a0f936f5417f59472f4 Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Fri, 26 Aug 2022 07:55:17 -0600 Subject: [PATCH] Revert "When monitoring idle connections, only call eof on tcp socket (#912)" (#914) This reverts commit 976fab5a291d4f22818751a813e48cd39471beca. --- src/ConnectionPool.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ConnectionPool.jl b/src/ConnectionPool.jl index f47a696a3..5ca877cad 100644 --- a/src/ConnectionPool.jl +++ b/src/ConnectionPool.jl @@ -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)