Skip to content

Make FCM/APNS timeouts configurable? #272

Open
@TysonAndre

Description

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,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions