-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.x.x - Shutdown hangs forever if there are stalled TLS connections #503
Comments
The problem originates here: hummingbird/Sources/HummingbirdCore/Server/HTTP/HTTPChannelHandler.swift Lines 99 to 105 in d29b0de
When closing the channel with mode Setting mode to The same may apply to I still find SwiftNIO fairly confusing, so I'm not sure if that's a suitable fix. ;) |
Can I ask you to try two different things, separately and together
let app = Application(
router: router,
server: http1(additionalChannelHandlers: [IdleStateHandler(readTimeout: .seconds(15))])
)
|
var app = Application(
router: Router(),
server: try .tls(.http1(additionalChannelHandlers: [IdleStateHandler(readTimeout: .seconds(15))]), tlsConfiguration: tlsConfiguration),
configuration: .init(address: .hostname(hostname, port: port))
) Using both changes, the app also shut down properly. |
#453 has now been merged and will be in the next release so I am going to close this now. |
Commit: 2.0-rc.1
Environment: macOS (issue happens for both BSD sockets and Transport Services)
Issue: Graceful shutdown never completes if the server is using TLS and a connection is still open.
The following code demonstrates the issue by doing the following:
socket
(without sending any data)The text was updated successfully, but these errors were encountered: