Skip to content

Commit fbd0259

Browse files
committed
Trying to debug spinquic assert
1 parent 45f3aaa commit fbd0259

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/core/connection.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,7 @@ QuicConnTryClose(
15911591
Connection->CloseErrorCode = QUIC_ERROR_INTERNAL_ERROR;
15921592
} else {
15931593
Connection->CloseStatus = QuicErrorCodeToStatus(ErrorCode);
1594+
CXPLAT_DBG_ASSERT(ErrorCode <= QUIC_VAR_INT_MAX);
15941595
Connection->CloseErrorCode = ErrorCode;
15951596
if (QuicErrorIsProtocolError(ErrorCode)) {
15961597
QuicPerfCounterIncrement(
@@ -4415,7 +4416,7 @@ QuicConnRecvFrames(
44154416
// In closing state, respond to any packet with a new close frame (rate-limited).
44164417
//
44174418
if (Closed && !Connection->State.ShutdownComplete) {
4418-
if (RecvTime - Connection->LastCloseResponseTimeUs >= QUIC_CLOSING_RESPONSE_MIN_INTERVAL_US) {
4419+
if (RecvTime - Connection->LastCloseResponseTimeUs >= QUIC_CLOSING_RESPONSE_MIN_INTERVAL) {
44194420
QuicSendSetSendFlag(
44204421
&Connection->Send,
44214422
Connection->State.AppClosed ?

src/core/quicdef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ CXPLAT_STATIC_ASSERT(
322322
// Minimum interval (in microseconds) between CONNECTION_CLOSE responses in
323323
// closing state.
324324
//
325-
#define QUIC_CLOSING_RESPONSE_MIN_INTERVAL_US 5000
325+
#define QUIC_CLOSING_RESPONSE_MIN_INTERVAL 5000
326326

327327
//
328328
// The default value for keep alives being enabled or not.

0 commit comments

Comments
 (0)