You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stream send behavior after stream send is shutdown #682
I bumped into a case, where it seems causing a problem that consumes the send capacity and impacts other streams. I was wondering what was the rationale of not returning error? And is this a known issue, or maybe I missed something?
I wrote a small test case to illustrate this issue. Here is the gist. (It's based on 0.6.0 or master head @b335378.).
The test shows two things:
After the server has shutdown stream 4 write, the call stream_send() still returns Ok with non-zero size until Ok(0) after a few calls. Ideally stream_send() should return Err.
stream_send() on another stream 8 failed afterwards, which means the above stream 4 writes were not no-ops. If comment out the stream 4 writes, then stream 8 write will succeed.
Fixed by 76598e4, released in 0.8.0. After stream_shutdown(Write), quiche sends RESET_STREAM and stream_send() returns FinalSize instead of accepting more data.
Activity
LPardue commentedon Nov 2, 2020
Thanks, this seems a legitimate concern to me. Wonder what others think.
keepsimple1 commentedon Nov 4, 2020
I wrote a small test case to illustrate this issue. Here is the gist. (It's based on 0.6.0 or master head @b335378.).
The test shows two things:
After the server has shutdown stream 4
write, the callstream_send()still returns Ok with non-zero size until Ok(0) after a few calls. Ideallystream_send()should return Err.stream_send()on another stream 8 failed afterwards, which means the above stream 4 writes were not no-ops. If comment out the stream 4 writes, then stream 8 write will succeed.ghedo commentedon Nov 25, 2026
Fixed by 76598e4, released in 0.8.0. After
stream_shutdown(Write), quiche sends RESET_STREAM andstream_send()returnsFinalSizeinstead of accepting more data.