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
I am implementing a server and client to stream video using webtransport. I am using TypeScript on the client, which opens two bidirectional stream (one for audio and one for video) and sends a single request to the server. The server then proceeds to send all file chunks (video is segmented like a DASH video) as fast as possible.
My main issue currently is that when I don't close the stream and try to stream more than one video, eventually the server crashes either through receiving a Unidirectional Stream (which I don't initiate) or by throwing the error "no recent network activity".
So far I have tried to close the StreamWriter on the client using writer.close(), similarily on the server by closing the stream s.Close() and also doing both.
However, from what I can see the streams don't actually close and eventually the server crashes.
Also a minor side question, is there a simple example what a server should look like using webtransport-go? Like an echo server for example. I know there is am exaple on the basic setup on the server in the README but there is no code on how to handle the connection.
The text was updated successfully, but these errors were encountered:
I am implementing a server and client to stream video using webtransport. I am using TypeScript on the client, which opens two bidirectional stream (one for audio and one for video) and sends a single request to the server. The server then proceeds to send all file chunks (video is segmented like a DASH video) as fast as possible.
My main issue currently is that when I don't close the stream and try to stream more than one video, eventually the server crashes either through receiving a Unidirectional Stream (which I don't initiate) or by throwing the error "no recent network activity".
So far I have tried to close the StreamWriter on the client using
writer.close()
, similarily on the server by closing the streams.Close()
and also doing both.However, from what I can see the streams don't actually close and eventually the server crashes.
Also a minor side question, is there a simple example what a server should look like using webtransport-go? Like an echo server for example. I know there is am exaple on the basic setup on the server in the README but there is no code on how to handle the connection.
The text was updated successfully, but these errors were encountered: