Skip to content

Commit

Permalink
Disable read/write timeouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeziL authored Dec 14, 2020
1 parent af0abcc commit c6ac8bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gosvr.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ func main() {
server := &http.Server{
Addr: ":" + *port,
Handler: gosvr.HTTPHandlerWrapper(gosvr.SimpleHTTPServer{Root: *dir, Box: box, Version: _Version}),
ReadTimeout: 5 * time.Minute,
WriteTimeout: 5 * time.Minute,
MaxHeaderBytes: 1 << 20,
}
log.Println("Local IPs:")
Expand Down

0 comments on commit c6ac8bc

Please sign in to comment.