-
-
Notifications
You must be signed in to change notification settings - Fork 13
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 periodic refresh for connection #58
Conversation
Added `refresh_interval_seconds` to Meta's config.
a984cbd
to
cc36414
Compare
… and use `FullReconnect` for force refreshes
cc36414
to
23ab631
Compare
@@ -95,6 +95,10 @@ meta: | |||
# HTTP endpoint to request new proxy address from, for dynamically assigned proxies. | |||
# The endpoint must return a JSON body with a string field called proxy_url. | |||
get_proxy_from: | |||
# Minimum interval between full reconnects in seconds, default is 1 hour | |||
min_full_reconnect_interval_seconds: 3600 |
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.
I'm exposing MinFullReconnectIntervalSeconds in the config file, as it also affect the interval for force refreshes.
… goes wrong while connecting
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.
Looks like it might work now, just a couple small tweaks
Co-authored-by: Tulir Asokan <[email protected]>
We've observed a number of intermittent errors where the socket connection is closed while trying to send a message (
refresh error; please retry in a few minutes
).Until we figure out why that's happening, this should help mitigate those problems by refreshing the connection at a given interval.