add: take_io method to LazyConfigAcceptor (#145)
* add: take_io method to LazyConfigAcceptor The `take_io` method can be used to take back ownership of the client IO stream when an error occurs during clientHello handshake. An example of this is when a client tries to connect to an TLS socket expecting it to be plain text connection. In this case take_io can be used to send a 400 response, "The plain HTTP request was sent to HTTPS port", back to the client. * rename test lazy_config_acceptor_take_iopull/2/head
parent
3fcf85892b
commit
fcbae20f8c
Loading…
Reference in new issue