Skip to content

Commit e236dcc

Browse files
authored
chore(api): disable request timeout (#2156)
1 parent b6252d5 commit e236dcc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/api/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const (
5959
// Must be less than maxWriteTimeout so the context cancels before the
6060
// server's write deadline kills the connection (WriteTimeout does NOT
6161
// cancel r.Context(); see https://github.com/golang/go/issues/59602).
62-
requestTimeout = 60 * time.Second
62+
// requestTimeout = 60 * time.Second
6363

6464
// This timeout should be > 600 (GCP LB upstream idle timeout) to prevent race condition
6565
// https://cloud.google.com/load-balancing/docs/https#timeouts_and_retries%23:~:text=The%20load%20balancer%27s%20backend%20keepalive,is%20greater%20than%20600%20seconds
@@ -129,7 +129,7 @@ func NewGinServer(ctx context.Context, config cfg.Config, tel *telemetry.Client,
129129
},
130130
}),
131131
gin.Recovery(),
132-
customMiddleware.RequestTimeout(requestTimeout), //nolint:contextcheck // Gin middleware sets context via c.Request.WithContext
132+
// customMiddleware.RequestTimeout(requestTimeout), //nolint:contextcheck // Gin middleware sets context via c.Request.WithContext
133133
)
134134

135135
corsConfig := cors.DefaultConfig()

0 commit comments

Comments
 (0)