Skip to content

Commit 018e115

Browse files
increase read time on outgoing requests
1 parent 6800f41 commit 018e115

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/lib/request.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ class Request
6464
# We enforce a 5s timeout on DNS resolving, 5s timeout on socket opening
6565
# and 5s timeout on the TLS handshake, meaning the worst case should take
6666
# about 15s in total
67-
TIMEOUT = { connect_timeout: 5, read_timeout: 10, write_timeout: 10, read_deadline: 30 }.freeze
67+
# Increace read_timeout to tolerante slow LLM translation APIs.
68+
TIMEOUT = { connect_timeout: 5, read_timeout: 30, write_timeout: 10, read_deadline: 45 }.freeze
6869

6970
include RoutingHelper
7071

0 commit comments

Comments
 (0)