Limit the reporting of closed streams, so as to reduce the number of printf calls.
@@ -361,11 +361,13 @@ int picoquic_demo_client_callback(picoquic_cnx_t* cnx,
if (fin_or_event == picoquic_callback_stream_fin) {
if (picoquic_demo_client_close_stream(ctx, stream_ctx)) {
fin_stream_id = stream_id;
+ if (stream_id <= 64) {
fprintf(stdout, "Stream %d ended after %d bytes\n",
(int)stream_id, (int)stream_ctx->received_length);
}
}
}
+ }
break;
case picoquic_callback_stream_reset: /* Server reset stream #x */
case picoquic_callback_stop_sending: /* Server asks client to reset stream #x */
