QUIC needs termination without session
This commit is contained in:
parent
7b10050b67
commit
73a9b7b810
|
@ -784,7 +784,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();
|
||||||
}
|
}
|
||||||
|
@ -1417,7 +1419,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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue