Skip to content

Commit e00efbb

Browse files
committed
taskworker: fix
1 parent a167cf9 commit e00efbb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

taskworker/main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,18 @@ Options:
114114

115115
reusePort := false
116116

117+
httpServerOptions := server.HttpServerOptions{
118+
ReadTimeout: 15 * time.Second,
119+
WriteTimeout: 30 * time.Second,
120+
IdleTimeout: 5 * time.Minute,
121+
}
122+
117123
err := server.HttpListenAndServeWithReusePort(
118124
ctx,
119125
net.JoinHostPort(listenIpv4, strconv.Itoa(listenPort)),
120126
router.NewRouter(ctx, routes),
121127
reusePort,
128+
httpServerOptions,
122129
)
123130
if err != nil {
124131
panic(err)

0 commit comments

Comments
 (0)