File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Packages/ClientRuntime/Sources/Networking/Http/CRT Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import AwsCommonRuntimeKit
1313public class CRTClientEngine : HttpClientEngine {
1414
1515 private var logger : LogAgent
16- private var crtLogger : Logger
1716 private var connectionPools : [ Endpoint : HttpClientConnectionManager ] = [ : ]
1817 private let CONTENT_LENGTH_HEADER = " Content-Length "
1918 private let AWS_COMMON_RUNTIME = " AwsCommonRuntime "
@@ -27,7 +26,6 @@ public class CRTClientEngine: HttpClientEngine {
2726 self . maxConnectionsPerEndpoint = config. maxConnectionsPerEndpoint
2827 self . windowSize = config. windowSize
2928 self . logger = SwiftLogger ( label: " CRTClientEngine " )
30- self . crtLogger = Logger ( pipe: stdout, level: . none, allocator: defaultAllocator)
3129 }
3230
3331 private func createConnectionPool( endpoint: Endpoint ) -> HttpClientConnectionManager {
Original file line number Diff line number Diff line change 77
88import AwsCommonRuntimeKit
99import class Foundation. ProcessInfo
10+ #if os(Linux)
11+ import Glibc
12+ #else
13+ import Darwin
14+ #endif
1015
1116public final class SDKDefaultIO {
12- static weak var privateShared : SDKDefaultIO ? = nil
17+ static weak var privateShared : SDKDefaultIO ?
1318
1419 // TODO: revisit this and verify that it is thread safe.
1520 public static var shared : SDKDefaultIO {
@@ -26,9 +31,11 @@ public final class SDKDefaultIO {
2631 public var hostResolver : DefaultHostResolver
2732 public var clientBootstrap : ClientBootstrap
2833 public var tlsContext : TlsContext
34+ public var logger : Logger
2935
3036 private init ( ) {
3137 AwsCommonRuntimeKit . initialize ( )
38+ self . logger = Logger ( pipe: stdout, level: . none, allocator: defaultAllocator)
3239 self . eventLoopGroup = EventLoopGroup ( threadCount: 0 )
3340 self . hostResolver = DefaultHostResolver ( eventLoopGroup: eventLoopGroup,
3441 maxHosts: 8 ,
You can’t perform that action at this time.
0 commit comments