File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ final class ConnectionPool {
373
373
private func makeNonTSBootstrap( on eventLoop: EventLoop ) throws -> NIOClientTCPBootstrap {
374
374
let tlsConfiguration = configuration. tlsConfiguration ?? TLSConfiguration . forClient ( )
375
375
let sslContext = try NIOSSLContext ( configuration: tlsConfiguration)
376
- let tlsProvider = try NIOSSLClientTLSProvider < ClientBootstrap > ( context: sslContext, serverHostname: key. host. isIPAddress ? nil : key. host)
376
+ let tlsProvider = try NIOSSLClientTLSProvider < ClientBootstrap > ( context: sslContext, serverHostname: ( key. scheme == . unix || key . host. isIPAddress) ? nil : key. host)
377
377
return NIOClientTCPBootstrap ( ClientBootstrap ( group: eventLoop) , tls: tlsProvider)
378
378
}
379
379
@@ -420,6 +420,7 @@ final class ConnectionPool {
420
420
do {
421
421
bootstrap = try makeHTTPClientBootstrapBase ( on: eventLoop)
422
422
} catch {
423
+ handshakePromise. fail ( error)
423
424
return eventLoop. makeFailedFuture ( error)
424
425
}
425
426
@@ -433,7 +434,6 @@ final class ConnectionPool {
433
434
434
435
return channel. flatMap { channel -> EventLoopFuture < ConnectionPool . Connection > in
435
436
handshakePromise. succeed ( ( ) )
436
- // channel.pipeline.addSSLHandlerIfNeeded(for: self.key, tlsConfiguration: self.configuration.tlsConfiguration, handshakePromise: handshakePromise)
437
437
return handshakePromise. futureResult. flatMap {
438
438
channel. pipeline. addHTTPClientHandlers ( leftOverBytesStrategy: . forwardBytes)
439
439
} . map {
You can’t perform that action at this time.
0 commit comments