-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add manual websocket pingloop #11765
Conversation
3e13906
to
9311a83
Compare
c566e34
to
371fd38
Compare
@greedy52 friendly ping :) |
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.
Overall looks good to me. Just curious if setting TCP keepalive is enough for this situation or proxy is relying on ping/poing?
@greedy52 Sadly not, proxies like Cloudflare care about the activity state of the WS connection on a protocol level. |
6655f65
to
ec97859
Compare
This PR readds the pre-v9 websocket pingloop. The documentation for the new websocket library used in v9 caused some confusion on my end about interactions with proxies. We need this to send more frequent ping messages manually to avoid websocket termination by proxy.
Fixes #11763