Closed jfro closed 1 year ago
Thanks for the report! We should really have a unit test for this.
I'm not able to reproduce this on 0.8 or main. Can you provide a repro?
I'll try, but my first attempt at a repro for the assertion bug didn't yield the same problem the original code producing this issue is, haven't found what the difference between the 2 is so far.
I had a similar issue where when i sent a packet with a size of max_datagram_size it wouldn't reach its destination, but when subtracting 1 or more from it, it worked
That was https://github.com/quinn-rs/quinn/issues/1413, which was fixed in https://github.com/quinn-rs/quinn/pull/1415.
Closing as not reproducible.
Not sure if this should just be documented or if there should be a fix to the calculation. If I try to send a packet via
send_datagram
of data at the size returned bymax_datagram_size()
I'll get aToolarge
error. I've had to reduce it by 2 to get it to pass the check & send the datagram. I'mcalling max_datagram_size()
at time of data generation & immediatesend_datagram()
call so it should be current.