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 FCM/APNS timeouts configurable? #272

Open
TysonAndre opened this issue Feb 22, 2021 · 0 comments
Open

Make FCM/APNS timeouts configurable? #272

TysonAndre opened this issue Feb 22, 2021 · 0 comments

Comments

@TysonAndre
Copy link
Contributor

TysonAndre commented Feb 22, 2021

Timeouts may depend on available bandwidth and burstiness of requests, but if a client expects a response from uniqush within 5 seconds then it may be useful to reduce it below the default of 20 seconds.

Enforce a minimum of 1 second

This may be useful to speed up detection and recovery from networking errors

srv/apns/http_api/processor.go
76:             // Note: Do not set IdleTimeout, it may be a cause of errors in setups where pushes are infrequent.
79:             TLSHandshakeTimeout:   10 * time.Second,
80:             ExpectContinueTimeout: 1 * time.Second,
98:             Timeout:   20 * time.Second,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant