mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-26 04:57:52 +00:00
Motivation: The remote peer may not always respond to a close notify. This would leave the SSL handler waiting to shutdown. The shutdown should timeout in these cases to ensure shutdown completes. Modifications: - Added a shutdown timeout to the NIOSSLHandler, and a configurable timeout amount to TLSConfiguration. - Added a test to validate timing out a shutdown. Result: TLS shutdown will complete even if the remote peer does not respond to a close notify.