Closed omus closed 2 years ago
https://github.com/JuliaWeb/HTTP.jl/pull/529 suppresses those errors during close
I'm running into this with Julia 1.8.0, MbedTLS 1.1.5, HTTP 1.1.3, similarly by way of AWSS3 (0.10.0).
Unhandled Task ERROR: MbedTLS error code -80: NET - Connection was reset by peer
Stacktrace:
[1] ssl_unsafe_read(ctx::MbedTLS.SSLContext, buf::Ptr{UInt8}, nbytes::UInt64)
@ MbedTLS ~/.julia/packages/MbedTLS/4i6Lh/src/ssl.jl:376
[2] wait_for_decrypted_data(ctx::MbedTLS.SSLContext)
@ MbedTLS ~/.julia/packages/MbedTLS/4i6Lh/src/ssl.jl:312
[3] eof(ctx::MbedTLS.SSLContext)
@ MbedTLS ~/.julia/packages/MbedTLS/4i6Lh/src/ssl.jl:175
[4] monitor_idle_connection(c::HTTP.ConnectionPool.Connection)
@ HTTP.ConnectionPool ~/.julia/packages/HTTP/PesRN/src/ConnectionPool.jl:264
[5] (::HTTP.ConnectionPool.var"#2#3"{HTTP.ConnectionPool.Connection})()
@ HTTP.ConnectionPool ./task.jl:484
Unhandled Task ERROR: ArgumentError: `ssl_unsafe_read` requires `isreadable(::SSLContext)`
Stacktrace:
[1] ssl_unsafe_read(ctx::MbedTLS.SSLContext, buf::Ptr{UInt8}, nbytes::UInt64)
@ MbedTLS ~/.julia/packages/MbedTLS/4i6Lh/src/ssl.jl:345
[2] wait_for_decrypted_data(ctx::MbedTLS.SSLContext)
@ MbedTLS ~/.julia/packages/MbedTLS/4i6Lh/src/ssl.jl:312
[3] eof(ctx::MbedTLS.SSLContext)
@ MbedTLS ~/.julia/packages/MbedTLS/4i6Lh/src/ssl.jl:175
[4] monitor_idle_connection(c::HTTP.ConnectionPool.Connection)
@ HTTP.ConnectionPool ~/.julia/packages/HTTP/PesRN/src/ConnectionPool.jl:264
[5] (::HTTP.ConnectionPool.var"#2#3"{HTTP.ConnectionPool.Connection})()
@ HTTP.ConnectionPool ./task.jl:484
@ararslan, ok, should be cleaned up in https://github.com/JuliaLang/MbedTLS.jl/pull/257
An issue encountered on Julia 0.6.4 on MbedTLS 0.5.14: