[BUGFIX]add datasize to po_regen_sz which will not be retransmitted. (#327)

This commit is contained in:
wangweiwei 2021-09-25 09:24:28 +08:00 committed by GitHub
parent 4026a4b616
commit fb96e96193
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8146,6 +8146,7 @@ write_datagram (struct ietf_full_conn *conn)
ABORT_ERROR("adding DATAGRAME frame to packet failed: %d", errno);
return 0;
}
packet_out->po_regen_sz += w;
packet_out->po_frame_types |= QUIC_FTBIT_DATAGRAM;
lsquic_send_ctl_incr_pack_sz(&conn->ifc_send_ctl, packet_out, w);
/* XXX The DATAGRAM frame should really be a regen. Do it when we