Define a new connection flag QC_CF_GLITCH. It is set when the connection
has hit its maximum glitch level and an error was reported due to it.
This flag is a subset of QC_CF_ERRL: every connection flagged with
QC_CF_GLITCH is also flagged with QC_CF_ERRL, but not the reverse. The
main purpose of the new flag is to allow finer handling of connection
errors. This is also useful when debugging a connection that is on
error.
#define QC_CF_CONN_SHUT 0x00000010 /* peer has initiated app layer shutdown - no new stream should be opened locally */
#define QC_CF_ERR_CONN 0x00000020 /* fatal error reported by transport layer */
#define QC_CF_WAIT_HS 0x00000040 /* MUX init before QUIC handshake completed (0-RTT) */
+#define QC_CF_GLITCH 0x00000080 /* glitch level reached and error reported */
/* This function is used to report flags in debugging tools. Please reflect
* below any single-bit flag addition above in the same order via the
_(QC_CF_CONN_FULL,
_(QC_CF_CONN_SHUT,
_(QC_CF_ERR_CONN,
- _(QC_CF_WAIT_HS)))))));
+ _(QC_CF_WAIT_HS,
+ _(QC_CF_GLITCH))))))));
/* epilogue */
_(~0U);
return buf;
qcc_set_error(qcc, QC_ERR_INTERNAL_ERROR, 0,
muxc_tevt_type_internal_err);
}
+
+ qcc->flags |= QC_CF_GLITCH;
return 1;
}