Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing a bidirectional stream #71

Open
ArckyPN opened this issue Mar 15, 2023 · 0 comments
Open

Closing a bidirectional stream #71

ArckyPN opened this issue Mar 15, 2023 · 0 comments

Comments

@ArckyPN
Copy link

ArckyPN commented Mar 15, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant