mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
MINOR: mux-quic: perform app init in case of early shutdown
Adds a qcc_app_init() call in qcc_app_shutdown(). This is necessary if shutdown is performed early, before any invokation of qcc_io_send(). Currently, this should never occur in practice. However, this will become necessary with the new settings tune.quic.fe.stream.max-total. Indeed, when using a very small value, app-ops layer may be closed early in the connection lifetime.
This commit is contained in:
parent
1038720675
commit
a7e1c82648
1 changed files with 5 additions and 0 deletions
|
|
@ -3382,6 +3382,11 @@ static void qcc_app_shutdown(struct qcc *qcc)
|
|||
if (qcc->app_st >= QCC_APP_ST_SHUT)
|
||||
goto out;
|
||||
|
||||
if (qcc->app_st < QCC_APP_ST_INIT) {
|
||||
if (qcc_app_init(qcc))
|
||||
goto out;
|
||||
}
|
||||
|
||||
TRACE_STATE("perform graceful shutdown", QMUX_EV_QCC_END, qcc->conn);
|
||||
if (qcc->app_ops && qcc->app_ops->shutdown) {
|
||||
qcc->app_ops->shutdown(qcc->ctx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue