}
}
+ void decrementConcurrentConnections()
+ {
+ if (d_cs != nullptr) {
+ --d_cs->tcpCurrentConnections;
+ }
+ }
+
std::map<int, std::string> d_ocspResponses;
+ ClientState* d_cs{nullptr};
private:
h2o_accept_ctx_t d_h2o_accept_ctx;
static void on_socketclose(void *data)
{
DOHAcceptContext* ctx = reinterpret_cast<DOHAcceptContext*>(data);
+ ctx->decrementConcurrentConnections();
ctx->release();
}
auto accept_ctx = dsc->accept_ctx->get();
sock->on_close.data = dsc->accept_ctx;
++dsc->df->d_httpconnects;
+ ++dsc->cs->tcpCurrentConnections;
h2o_accept(accept_ctx, sock);
}
nativeCtx->ssl_ctx = tlsCtx.release();
}
-
+ ctx.d_cs = dsc.cs;
ctx.release();
}