Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 0adf040

Browse files
author
Maciej Winnicki
committed
increase read/write timeout on events API
1 parent f874877 commit 0adf040

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ func StartEventsAPI(config httpapi.Config, router http.Handler) {
1313
handler := &http.Server{
1414
Addr: ":" + strconv.Itoa(int(config.Port)),
1515
Handler: router,
16-
ReadTimeout: 3 * time.Second,
17-
WriteTimeout: 3 * time.Second,
16+
ReadTimeout: 60 * time.Second,
17+
WriteTimeout: 540 * time.Second,
1818
}
1919

2020
server := httpapi.Server{

0 commit comments

Comments
 (0)