Skip to content

Commit

Permalink
Update WriteTimeout to 600 secs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawan Rawal committed Jan 27, 2017
1 parent eabfac3 commit d22e336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dgraph/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ func serveGRPC(l net.Listener) {
func serveHTTP(l net.Listener) {
srv := &http.Server{
ReadTimeout: 10 * time.Second,
WriteTimeout: 150 * time.Second,
WriteTimeout: 600 * time.Second,
// TODO(Ashwin): Add idle timeout while switching to Go 1.8.
}
x.Checkf(srv.Serve(l), "Error while serving http request")
Expand Down

0 comments on commit d22e336

Please sign in to comment.