JuliaLang / MbedTLS.jl

Wrapper around mbedtls
Other
41 stars 50 forks source link

Actively check whether there's pending close notifications #221

Closed Keno closed 4 years ago

Keno commented 4 years ago

Without this HTTP would try to push a request into a connection that had already received a TLS close notify, which is an error condition. Of course ideally HTTP would be robust to such error conditions, but at least without a retry layer, it isn't. However, just this patch reduces the incidence of HTTP errors to zero when connecting to S3 (in combination with my PRs to HTTP.jl).