parent
2dfaf6a275
commit
f2237369c6
|
@ -41,7 +41,6 @@ write(c::SSLClient, s::String) = write(c, Vector{UInt8}(s))
|
||||||
import Base.close
|
import Base.close
|
||||||
function close(client::SSLClient)
|
function close(client::SSLClient)
|
||||||
closed = do_ssl_shutdown(client)
|
closed = do_ssl_shutdown(client)
|
||||||
@show closed
|
|
||||||
close(client.sock)
|
close(client.sock)
|
||||||
free(client)
|
free(client)
|
||||||
end
|
end
|
||||||
|
|
|
@ -134,8 +134,7 @@ function do_ssl_shutdown(client)
|
||||||
status = ssl_status(client, n)
|
status = ssl_status(client, n)
|
||||||
# Special case, do the shutdown again
|
# Special case, do the shutdown again
|
||||||
if n == 0
|
if n == 0
|
||||||
n = shutdown(client)
|
status = ssl_status(client, shutdown(client))
|
||||||
@show status = ssl_status(client, n)
|
|
||||||
end
|
end
|
||||||
if status in (SSL_WANT_READ, SSL_WANT_WRITE)
|
if status in (SSL_WANT_READ, SSL_WANT_WRITE)
|
||||||
while true
|
while true
|
||||||
|
|
Loading…
Reference in New Issue