qlog: support the retire_connection_id frame type
@@ -164,6 +164,18 @@ def handle_quictrace_recv_ack(event):
"frame_type": "ack",
}
+def handle_retire_connection_id_receive(event):
+ return {
+ "frame_type": "retire_connection_id",
+ "sequence_number": event["sequence"]
+ }
+
+def handle_retire_connection_id_send(event):
+ return {
+ "frame_type": "retire_connection_id",
+ "sequence_number": event["sequence"]
+ }
+
def handle_streams_blocked_receive(event):
if event["is-unidirectional"]:
stream_type = unidirectional
@@ -253,6 +265,8 @@ FRAME_EVENT_HANDLERS = {
"new-token-send": handle_new_token_send,
"ping-receive": handle_ping_receive,
"quictrace-recv-ack": handle_quictrace_recv_ack,
+ "retire-connection-id-receive": handle_retire_connection_id_receive,
+ "retire-connection-id-send": handle_retire_connection_id_send,
"streams-blocked-receive": handle_streams_blocked_receive,
"streams-blocked-send": handle_streams_blocked_send,
"stream-data-blocked-receive": handle_stream_data_blocked_receive,
