-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(transport): Expose tcp keepalive to clients & servers #151
Conversation
Hi @zenria! Thanks for opening up a pull request, we much appreciate the contribution! It looks like your PR is fine, but we need to upgrade some other dependencies to get the build green before merging it. I'll try to look at that sometime either today or tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Once we get deny working which I think you just need to merge master we can merge this! Thanks! |
* master: Upgrade to `tokio 0.2` (hyperium#163) chore(interop): Update console dep (hyperium#155) Temporarily allow duplicate crossbeam-queue crates (hyperium#153) # Conflicts: # tonic/src/transport/server.rs
I've updated my PR so it can merge with current master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great thank you!
Motivation
Long running tcp connections (grpc streaming), with very low activity may be silently disconnected if done though firewalls or NAT routers. TCP keepalive fixes this.
Solution
Expose hyper tcp_keepalive api on
Endpoint
andServer
.