nghttpx: Pass hashed_scid_ to CloseWait

This commit is contained in:
Tatsuhiro Tsujikawa 2021-09-15 23:40:46 +09:00
parent 684a219e39
commit 8f9744c07b
1 changed files with 2 additions and 3 deletions

View File

@ -1330,10 +1330,9 @@ void Http3Upstream::on_handler_delete() {
auto worker = handler_->get_worker(); auto worker = handler_->get_worker();
auto quic_conn_handler = worker->get_quic_connection_handler(); auto quic_conn_handler = worker->get_quic_connection_handler();
quic_conn_handler->remove_connection_id(&hashed_scid_); std::vector<ngtcp2_cid> scids(ngtcp2_conn_get_num_scid(conn_) + 1);
std::vector<ngtcp2_cid> scids(ngtcp2_conn_get_num_scid(conn_));
ngtcp2_conn_get_scid(conn_, scids.data()); ngtcp2_conn_get_scid(conn_, scids.data());
scids.back() = hashed_scid_;
for (auto &cid : scids) { for (auto &cid : scids) {
quic_conn_handler->remove_connection_id(&cid); quic_conn_handler->remove_connection_id(&cid);