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.

Home Page:http://uniqush.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make FCM/APNS timeouts configurable?

TysonAndre opened this issue · comments

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,