Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 71ec1db

Browse filesBrowse files
committed
Adds 60 second read/write timeout to Revel http.server
1 parent 12e1fd9 commit 71ec1db
Copy full SHA for 71ec1db

File tree

1 file changed

+4
-2
lines changed
Filter options

1 file changed

+4
-2
lines changed

‎server.go

Copy file name to clipboardExpand all lines: server.go
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ func Run(port int) {
9494
}
9595

9696
Server = &http.Server{
97-
Addr: localAddress,
98-
Handler: http.HandlerFunc(handle),
97+
Addr: localAddress,
98+
Handler: http.HandlerFunc(handle),
99+
ReadTimeout: time.Minute,
100+
WriteTimeout: time.Minute,
99101
}
100102

101103
runStartupHooks()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.