Skip to content

Commit 2a29c43

Browse files
committed
increase timeout in lbz relay
1 parent 1e04464 commit 2a29c43

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

engine/handlers/lbz_submit_listen.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ func doLbzRelay(requestBytes []byte, l *zerolog.Logger) {
207207
}
208208
}()
209209
const (
210-
maxRetryDuration = 10 * time.Second
211-
initialBackoff = 1 * time.Second
212-
maxBackoff = 4 * time.Second
210+
maxRetryDuration = 3 * time.Minute
211+
initialBackoff = 5 * time.Second
212+
maxBackoff = 40 * time.Second
213213
)
214214
req, err := http.NewRequest("POST", cfg.LbzRelayUrl()+"/submit-listens", bytes.NewBuffer(requestBytes))
215215
if err != nil {
@@ -221,7 +221,7 @@ func doLbzRelay(requestBytes []byte, l *zerolog.Logger) {
221221
req.Header.Add("Content-Type", "application/json")
222222

223223
client := &http.Client{
224-
Timeout: 5 * time.Second,
224+
Timeout: 30 * time.Second,
225225
}
226226

227227
var resp *http.Response

0 commit comments

Comments
 (0)