housleyjk / ws-rs

Lightweight, event-driven WebSockets for Rust.
MIT License
1.46k stars 219 forks source link

SSL example is non-functional #309

Open vgarleanu opened 4 years ago

vgarleanu commented 4 years ago

The SSL example silently stops clients from connecting. Upon closer inspection, the upgrade_ssl_server method returns a Err on any connection type: Err value: WouldBlock(MidHandshakeSslStream { stream: SslStream { stream: TcpStream { addr: V4(192.168.0.17:4012), peer: V4(192.168.0.17:59812), fd: 8 }, ssl: Ssl { state: "before SSL initialization", verify_result: X509VerifyResult { code: 0, error: "ok" } } }, error: Error { code: ErrorCode(2), cause: Some(Io(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })) } })' I am using a self signed certificate by the way.

debuuu commented 4 years ago

Also having this issue, any obvious mistake we're making? Also self-signed cert.