mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-25 16:17:21 -04:00
MINOR: mux-quic: protect qcc_io_process for QMux
Use conn_is_quic() prior to quic_conn manipulation in qcc_io_process(). This will be necessary to ensure compatibility with the new QMux protocol.
This commit is contained in:
parent
9d8f7a4459
commit
afa17f68a9
1 changed files with 1 additions and 1 deletions
|
|
@ -3344,7 +3344,7 @@ static int qcc_io_process(struct qcc *qcc)
|
|||
/* If using listener socket, soft-stop is not supported. The
|
||||
* connection must be closed immediately.
|
||||
*/
|
||||
if (!qc_test_fd(qcc->conn->handle.qc)) {
|
||||
if (conn_is_quic(qcc->conn) && !qc_test_fd(qcc->conn->handle.qc)) {
|
||||
TRACE_DEVEL("proxy disabled with listener socket, closing connection", QMUX_EV_QCC_WAKE, qcc->conn);
|
||||
qcc->conn->flags |= (CO_FL_SOCK_RD_SH|CO_FL_SOCK_WR_SH);
|
||||
qcc_io_send(qcc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue