We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55de15c commit e12bec3Copy full SHA for e12bec3
1 file changed
net/http/client.cpp
@@ -48,16 +48,13 @@ class PooledDialer {
48
// multiple times, even for a thread_local instance. Therefore, ensure that there is no photon
49
// thread switch inside the constructor. Place the initialization work in init() and ensure it
50
// is initialized only once.
51
- PooledDialer() {
52
- photon::fini_hook({this, &PooledDialer::at_photon_fini});
53
- }
54
-
55
int init(TLSContext *_tls_ctx, std::vector<IPAddr> &src_ips) {
56
if (initialized)
57
return 0;
58
SCOPED_LOCK(init_mtx);
59
60
+ photon::fini_hook({this, &PooledDialer::at_photon_fini});
61
tls_ctx = _tls_ctx;
62
if (!tls_ctx) {
63
tls_ctx_ownership = true;
0 commit comments