Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions src/ssl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -682,16 +682,10 @@ function Base.close(ssl::SSLStream, shutdown::Bool=true)
Base.@lock ssl.lock begin
ssl.closed && return
ssl.closed = true
if shutdown
try
ssl_disconnect(ssl.ssl)
catch err
@debug "SSL disconnect failed" err
end
end
shutdown && ssl_disconnect(ssl.ssl)
free(ssl.ssl)
end
@async try
try
Base.close(ssl.io)
Copy link

@rossviljoen rossviljoen Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't close acquire the iolock, and therefore is not permitted in a finalizer either?

catch e
e isa Base.IOError || rethrow()
Expand Down
Loading