diff --git a/src/buffered_socket.jl b/src/buffered_socket.jl index 5f4f2a7..bf17247 100644 --- a/src/buffered_socket.jl +++ b/src/buffered_socket.jl @@ -48,7 +48,7 @@ function fill_in(bio::BufferedTLSSocket, atleast::Int) if bytes_read > 0 avail += Base.write(bio.in, first(bio.readbuff, bytes_read)) else - MbedTLS.wait_for_decrypted_data(bio.sock) + eof(bio.sock) end end end