private-octopus / picoquic

Minimal implementation of the QUIC protocol
MIT License
542 stars 161 forks source link

Files are being sent LIFO #768

Closed huitema closed 4 years ago

huitema commented 4 years ago

Trying to download several files in parallel, Robin Marx observes that "you first send back a small frame with the headers for each stream and then the response for the files 1 by one. When you do switch to another file (the 2nd green bar) it's because of retransmits (indicated by the black bars below). Lacking retransmits, you reply in LIFO order."

LIFO is not the intended design. The intended design was round robin, but that's not the best behavior for HTTP3 -- that would be FIFO with run to completion. LIFO is the worst solution...

huitema commented 4 years ago

Fixed in PR #770