dandeliondeathray / DandelionWebSockets.jl

A Julia package for client side WebSockets.
Other
21 stars 11 forks source link

Connection does not close properly for TLS #39

Closed erikedin closed 6 years ago

erikedin commented 6 years ago

It hangs after state CLOSING. Presumably, it does not receive a SocketClosed() event, but that is mostly a guess.

erikedin commented 6 years ago

As it turns out, there were at least two issues with TLS.

  1. The reads in TLSBufferedIO did not throw exceptions, as the normal streams did.
  2. MbedTLS version 0.5.3 and higher block on reads and writes.