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

Make tunnel resilient to hanging network sockets #4

Open
boronine opened this issue Oct 24, 2024 · 1 comment
Open

Make tunnel resilient to hanging network sockets #4

boronine opened this issue Oct 24, 2024 · 1 comment

Comments

@boronine
Copy link
Owner

The test system introduced by the latest commit allows us to emulate bad network conditions by passing the tunnel through our well-tested "NetworkEmulator" class, which can be used to pause and unpause sockets. This kind of problem requires a timeout of sorts, perhaps native TCP keepalive, perhaps a regular HTTP2 ping failing to receive which will prompt us to destroy the socket and attempt reconnection until network is back.

@boronine
Copy link
Owner Author

gRPC uses HTTP2 ping https://grpc.io/docs/guides/keepalive/

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