JuliaLang / MbedTLS.jl

Wrapper around mbedtls
Other
41 stars 50 forks source link

read can block while reading exact number of bytes written to a connection #191

Closed tanmaykm closed 5 years ago

tanmaykm commented 5 years ago

A reader making a call to read the exact number of bytes as what is available in the socket, can get blocked because of the subsequent eof check here: https://github.com/JuliaWeb/MbedTLS.jl/blob/38da8fb6b950bf7184b4b9591eadfc49e62a1454/src/ssl.jl#L439

tanmaykm commented 5 years ago

Following up with PR to fix in a bit