Skip to content

Commit 6a81e5b

Browse files
authored
Merge pull request #1938 from private-octopus/pisoquic_ns_error_idle
delete quicperf stream ctx after stop sending
2 parents 2b92e03 + 1bb1a3f commit 6a81e5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

picohttp/quicperf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,8 +1125,9 @@ void quicperf_receive_media_data(picoquic_cnx_t* cnx, quicperf_ctx_t* ctx, quicp
11251125
if (current_time > stream_ctx->reset_time && fin_or_event != picoquic_callback_stream_fin) {
11261126
if (!stream_ctx->is_stopped) {
11271127
picoquic_stop_sending(cnx, stream_ctx->stream_id, QUICPERF_ERROR_DELAY_TOO_HIGH);
1128+
stream_ctx->is_stopped = 1;
1129+
stream_ctx->is_closed = 1;
11281130
}
1129-
stream_ctx->is_stopped = 1;
11301131
}
11311132
}
11321133
}

0 commit comments

Comments
 (0)