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 @@ -376,7 +376,7 @@ final class ConnectionPool {
376
376
private func makeNonTSBootstrap( on eventLoop: EventLoop ) throws -> NIOClientTCPBootstrap {
377
377
let tlsConfiguration = configuration. tlsConfiguration ?? TLSConfiguration . forClient ( )
378
378
let sslContext = try NIOSSLContext ( configuration: tlsConfiguration)
379
- let tlsProvider = try NIOSSLClientTLSProvider < ClientBootstrap > ( context: sslContext, serverHostname: key. host. isIPAddress ? nil : key. host)
379
+ let tlsProvider = try NIOSSLClientTLSProvider < ClientBootstrap > ( context: sslContext, serverHostname: ( key. scheme == . unix || key . host. isIPAddress) ? nil : key. host)
380
380
return NIOClientTCPBootstrap ( ClientBootstrap ( group: eventLoop) , tls: tlsProvider)
381
381
}
382
382
@@ -423,6 +423,7 @@ final class ConnectionPool {
423
423
do {
424
424
bootstrap = try makeHTTPClientBootstrapBase ( on: eventLoop)
425
425
} catch {
426
+ handshakePromise. fail ( error)
426
427
return eventLoop. makeFailedFuture ( error)
427
428
}
428
429
@@ -436,7 +437,6 @@ final class ConnectionPool {
436
437
437
438
return channel. flatMap { channel -> EventLoopFuture < ConnectionPool . Connection > in
438
439
handshakePromise. succeed ( ( ) )
439
- // channel.pipeline.addSSLHandlerIfNeeded(for: self.key, tlsConfiguration: self.configuration.tlsConfiguration, handshakePromise: handshakePromise)
440
440
return handshakePromise. futureResult. flatMap {
441
441
channel. pipeline. addHTTPClientHandlers ( leftOverBytesStrategy: . forwardBytes)
442
442
} . map {
You can’t perform that action at this time.
0 commit comments