Unexpected hang behavior when using webtransport #335
Unanswered
FallingSnow
asked this question in
Q&A
Replies: 1 comment
-
This seems to have been caused by the WebTransport on the client end not being able to read quick enough. This shouldn't be a problem as backpressure should automatically be applied and the As for the solution, I ended up putting the WebTransport inside it's own web worker thread to ensure it could read fast enough. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When refreshing my browser the webtransport connection is not terminated properly. Salvo's webtransport recv half starts reading 0 bytes, which is acceptable. I use this 0 byte read to find that the connection is terminated.
However sometimes I try to
.write_all()
on the send half right when the connection has been terminated. This results in.write_all()
hanging indefinitely.Is this expected behavior?
For the time being I've solved this by placing a timeout on
write_all
.Edit:
I'm also running into this issue when sending large amounts of data... After sending a lot of data
write_all()
will hang.Beta Was this translation helpful? Give feedback.
All reactions