Skip to content

Commit

Permalink
[~] When server side receive Retry packets, just ignore the packet in…
Browse files Browse the repository at this point in the history
…stead of closing connection. For handshake corruption interop cases. (#449)
  • Loading branch information
Yanmei-Liu committed Aug 23, 2024
1 parent af9437e commit 9e82708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transport/xqc_packet_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 9e82708

Please sign in to comment.