Commit Graph
1 Commits
Author SHA1 Message Date
DomandLucio Franco 412a0bd697 fix(transport): Avoid exit after bad TLS handshake (#51)
* transport: no crash after bad TLS handshake

Prevents the server exiting after a bad TLS handshake / error during
accept(). Instead the connection is dropped and the server continues to
serve new clients.

Previously an error would bubble up from the TLS library (tested with
rustls) and cause hyper to exit with:

	[src/main.rs:85] &e = Error(
		Server,
		Error(
			Accept,
			Custom {
				kind: InvalidData,
				error: CorruptMessage,
			},
		),
	)

* transport: add tracing error for TLS handshake failure

Co-Authored-By: Lucio Franco <[email protected]>
2019-10-07 21:36:37 -04:00