Skip to content

Commit

Permalink
Make monitor_idle_connections less noisy; follow up on https://github… (
Browse files Browse the repository at this point in the history
#907)

* Make monitor_idle_connections less noisy; follow up on JuliaLang/MbedTLS.jl#250

* fix import
  • Loading branch information
quinnj authored Aug 18, 2022
1 parent 137fa68 commit 4d59f76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ConnectionPool.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export Connection, newconnection, releaseconnection, getrawstream, inactivesecon

using Sockets, LoggingExtras, NetworkOptions
using MbedTLS: SSLConfig, SSLContext, setup!, associate!, hostname!, handshake!
using ..IOExtras, ..Conditions
using ..IOExtras, ..Conditions, ..Exceptions

const default_connection_limit = 8
const default_pipeline_limit = 16
Expand Down Expand Up @@ -263,8 +263,8 @@ function monitor_idle_connection(c::Connection)
close(c.io)
end
catch ex
close(c.io)
rethrow()
@try Base.IOError close(c.io)
ex isa Base.IOError || rethrow()
end
nothing
end
Expand Down

0 comments on commit 4d59f76

Please sign in to comment.