From 9e8270820e332f44ed2476d5ef17b48220ad7ff2 Mon Sep 17 00:00:00 2001 From: Yanmei Liu Date: Fri, 23 Aug 2024 15:20:33 +0800 Subject: [PATCH] [~] When server side receive Retry packets, just ignore the packet instead of closing connection. For handshake corruption interop cases. (#449) --- src/transport/xqc_packet_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/xqc_packet_parser.c b/src/transport/xqc_packet_parser.c index 35ea7e97..ec7729f2 100644 --- a/src/transport/xqc_packet_parser.c +++ b/src/transport/xqc_packet_parser.c @@ -1037,8 +1037,8 @@ xqc_packet_parse_retry(xqc_connection_t *c, xqc_packet_in_t *packet_in) /* check conn type, only client can receive a Retry packet */ if (c->conn_type != XQC_CONN_TYPE_CLIENT) { - xqc_log(c->log, XQC_LOG_WARN, "|invalid conn_type|%d|", c->conn_type); - return -XQC_EPROTO; + xqc_log(c->log, XQC_LOG_WARN, "|invalid conn_type recvd retry packet|%d|ignored|", c->conn_type); + return -XQC_EIGNORE_PKT; } /**