Skip to content

Commit 560ade1

Browse files
committed
Release 3.3.3
1 parent 984d8ff commit 560ade1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/liblsquic/lsquic_send_ctl.c

+11-1
Original file line numberDiff line numberDiff line change
@@ -2907,13 +2907,23 @@ lsquic_sendctl_gen_stream_blocked_frame (struct lsquic_send_ctl *ctl,
29072907
unsigned need;
29082908
uint64_t off;
29092909
int sz;
2910+
int is_err;
29102911

29112912
off = lsquic_stream_combined_send_off(stream);
29122913
need = pf->pf_stream_blocked_frame_size(stream->id, off);
29132914
packet_out = lsquic_send_ctl_get_packet_for_stream(ctl, need,
29142915
stream->conn_pub->path, stream);
29152916
if (!packet_out)
2916-
return 0;
2917+
{
2918+
LSQ_DEBUG("failed to get packet_out with lsquic_send_ctl_get_packet_for_stream");
2919+
packet_out = lsquic_send_ctl_get_writeable_packet(ctl,
2920+
PNS_APP, need, stream->conn_pub->path, 0, &is_err);
2921+
if (!packet_out)
2922+
{
2923+
LSQ_DEBUG("cannot get writeable packet for STREAM_BLOCKED frame");
2924+
return 0;
2925+
}
2926+
}
29172927
sz = pf->pf_gen_stream_blocked_frame(
29182928
packet_out->po_data + packet_out->po_data_sz,
29192929
lsquic_packet_out_avail(packet_out), stream->id, off);

0 commit comments

Comments
 (0)