mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-05-03 07:32:29 +00:00
Handle NIOSSLError.uncleanShutdown correctly (#472)
### Motivation Fixes #238 and #231. ### Changes - Extracted the unclean shutdown test from `HTTPClientTests` into their own file `HTTPClientUncleanSSLConnectionShutdownTests` - Copy and pasted @weissi great explanation from #238 into the test file - Removed property `ignoreUncleanSSLShutdown` everywhere ### Result `ignoreUncleanSSLShutdown` on `HTTPClient.Configuration` is deprecated and ignored. Co-authored-by: Johannes Weiss <johannesweiss@apple.com>
This commit is contained in:
@@ -24,7 +24,7 @@ final class HTTP2ClientRequestHandler: ChannelDuplexHandler {
|
||||
|
||||
private let eventLoop: EventLoop
|
||||
|
||||
private var state: HTTPRequestStateMachine = .init(isChannelWritable: false, ignoreUncleanSSLShutdown: false) {
|
||||
private var state: HTTPRequestStateMachine = .init(isChannelWritable: false) {
|
||||
willSet {
|
||||
self.eventLoop.assertInEventLoop()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user