Skip to content

Commit d4d5476

Browse files
liulanzhenglihuiba
authored andcommitted
enhance at_photon_fini() in PooledDialer
Signed-off-by: liulanzheng <lanzheng.liulz@alibaba-inc.com>
1 parent f696c50 commit d4d5476

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

net/http/client.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class PooledDialer {
4343
photon::mutex init_mtx;
4444
bool initialized = false;
4545
bool tls_ctx_ownership = false;
46-
std::vector<IPAddr> src_ips;
4746

4847
// If there is a photon thread switch during construction, the constructor might be called
4948
// multiple times, even for a thread_local instance. Therefore, ensure that there is no photon
@@ -81,6 +80,8 @@ class PooledDialer {
8180
tcpsock.reset();
8281
if (tls_ctx_ownership)
8382
delete tls_ctx;
83+
initialized = false;
84+
tls_ctx_ownership = false;
8485
}
8586

8687
ISocketStream* dial(std::string_view host, uint16_t port, bool secure,

0 commit comments

Comments
 (0)