Commit 5d9d35a6 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

QUIC needs termination without session

parent 31a46280
...@@ -838,7 +838,9 @@ void Client::terminate_session() { ...@@ -838,7 +838,9 @@ void Client::terminate_session() {
if (config.is_quic()) { if (config.is_quic()) {
quic.close_requested = true; quic.close_requested = true;
} }
session->terminate(); if (session) {
session->terminate();
}
// http1 session needs writecb to tear down session. // http1 session needs writecb to tear down session.
signal_write(); signal_write();
} }
...@@ -1496,7 +1498,7 @@ Worker::~Worker() { ...@@ -1496,7 +1498,7 @@ Worker::~Worker() {
void Worker::stop_all_clients() { void Worker::stop_all_clients() {
for (auto client : clients) { for (auto client : clients) {
if (client && client->session) { if (client) {
client->terminate_session(); client->terminate_session();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment