]> cat aescling's git repositories - mastodon.git/commitdiff
Revert connect timeout from 1s to 10s (#9319)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 21 Nov 2018 16:00:56 +0000 (17:00 +0100)
committerGitHub <noreply@github.com>
Wed, 21 Nov 2018 16:00:56 +0000 (17:00 +0100)
The failure rate in Sidekiq is too high

app/lib/request.rb

index 73b495ce19f68a946c3dffb4ec2d88e22ae884da..fdaaf363699400a4770dc7419a722cf31ca5666b 100644 (file)
@@ -94,7 +94,7 @@ class Request
   end
 
   def timeout
-    { connect: 1, read: 10, write: 10 }
+    { connect: 10, read: 10, write: 10 }
   end
 
   def http_client