Open vgarleanu opened 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.
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" })) } })'
Also having this issue, any obvious mistake we're making? Also self-signed cert.
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.