Skip to content

Commit

Permalink
fix pool dialer leaks socket client
Browse files Browse the repository at this point in the history
  • Loading branch information
Coldwings committed Aug 16, 2023
1 parent 2fedbe5 commit e6fead9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/http/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PooledDialer {
PooledDialer() :
tls_ctx(new_tls_context(nullptr, nullptr, nullptr)),
tcpsock(new_tcp_socket_pool(new_tcp_socket_client(), -1, true)),
tlssock(new_tcp_socket_pool(new_tls_client(tls_ctx, new_tcp_socket_client()), -1, true)),
tlssock(new_tcp_socket_pool(new_tls_client(tls_ctx, new_tcp_socket_client(), true), -1, true)),
resolver(new_default_resolver(kDNSCacheLife)) {
}

Expand Down

0 comments on commit e6fead9

Please sign in to comment.