Skip to content

Commit be40a33

Browse files
committed
delete quicperf stream ctx after stop sending
1 parent 2b92e03 commit be40a33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

picohttp/quicperf.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,11 @@ void quicperf_receive_media_data(picoquic_cnx_t* cnx, quicperf_ctx_t* ctx, quicp
11271127
picoquic_stop_sending(cnx, stream_ctx->stream_id, QUICPERF_ERROR_DELAY_TOO_HIGH);
11281128
}
11291129
stream_ctx->is_stopped = 1;
1130+
#if 1
1131+
/* Close the stream context, remove its association with the stream id, do not send any more */
1132+
stream_ctx->is_closed = 1;
1133+
quicperf_terminate_and_delete_stream(cnx, ctx, stream_ctx);
1134+
#endif
11301135
}
11311136
}
11321137
}

0 commit comments

Comments
 (0)