Skip to content

Commit c62b372

Browse files
committed
feat: remove all timeouts from HTTP server
1 parent 43af131 commit c62b372

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

main.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ func newRouter() http.Handler {
4040

4141
func main() {
4242
srv := &http.Server{
43-
Addr: "0.0.0.0:5000",
44-
WriteTimeout: time.Second * 15,
45-
ReadTimeout: time.Second * 15,
46-
IdleTimeout: time.Second * 60,
47-
Handler: newRouter(),
43+
Addr: "0.0.0.0:5000",
44+
Handler: newRouter(),
4845
}
4946

5047
go func() {

0 commit comments

Comments
 (0)