about summary refs log tree commit diff
path: root/app/models/web
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-12-17 03:14:13 +0100
committerGitHub <noreply@github.com>2018-12-17 03:14:13 +0100
commit628da11e38b0580a074268f32d09791ed6278def (patch)
tree757ecff88ba7fed80bdd1f2acf6a1a40c460dfff /app/models/web
parent4297de34cfe705622d53d9688c1ad9abb24ced76 (diff)
Do no retry web push workers if the server returns a 4xx response (#9434)
Add timeout of 10s to web push requests
Diffstat (limited to 'app/models/web')
-rw-r--r--app/models/web/push_subscription.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/web/push_subscription.rb b/app/models/web/push_subscription.rb
index d19b20c48..b57807d1c 100644
--- a/app/models/web/push_subscription.rb
+++ b/app/models/web/push_subscription.rb
@@ -68,6 +68,9 @@ class Web::PushSubscription < ApplicationRecord
       p256dh: key_p256dh,
       auth: key_auth,
       ttl: ttl,
+      ssl_timeout: 10,
+      open_timeout: 10,
+      read_timeout: 10,
       vapid: {
         subject: "mailto:#{::Setting.site_contact_email}",
         private_key: Rails.configuration.x.vapid_private_key,