uniqush / uniqush-push

Uniqush is a free and open source software system which provides a unified push service for server side notification to apps on mobile devices.
http://uniqush.org
Apache License 2.0
1.54k stars 201 forks source link

Make FCM/APNS timeouts configurable? #272

Open TysonAndre opened 3 years ago

TysonAndre commented 3 years ago

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,