File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ let package = Package(
21
21
. library( name: " AsyncHTTPClient " , targets: [ " AsyncHTTPClient " ] ) ,
22
22
] ,
23
23
dependencies: [
24
- . package ( url: " https://github.com/apple/swift-nio.git " , from: " 2.34 .0 " ) ,
24
+ . package ( url: " https://github.com/apple/swift-nio.git " , from: " 2.36 .0 " ) ,
25
25
. package ( url: " https://github.com/apple/swift-nio-ssl.git " , from: " 2.14.1 " ) ,
26
26
. package ( url: " https://github.com/apple/swift-nio-http2.git " , from: " 1.19.0 " ) ,
27
27
. package ( url: " https://github.com/apple/swift-nio-extras.git " , from: " 1.10.0 " ) ,
Original file line number Diff line number Diff line change @@ -545,7 +545,8 @@ public class HTTPClient {
545
545
let taskEL : EventLoop
546
546
switch eventLoopPreference. preference {
547
547
case . indifferent:
548
- taskEL = self . eventLoopGroup. next ( )
548
+ // if possible we want a connection on the current `EventLoop`
549
+ taskEL = self . eventLoopGroup. any ( )
549
550
case . delegate( on: let eventLoop) :
550
551
precondition ( self . eventLoopGroup. makeIterator ( ) . contains { $0 === eventLoop } , " Provided EventLoop must be part of clients EventLoopGroup. " )
551
552
taskEL = eventLoop
You can’t perform that action at this time.
0 commit comments