Skip to content

Commit

Permalink
modified default timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanPear committed Sep 6, 2015
1 parent 983fc19 commit d8c0bf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/repserver/handlers/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ func (ms MessageServer) RunServer() {
httpServer := &http.Server{
Addr: "127.0.0.1:" + strconv.Itoa(ms.ListenPort),
Handler: httpHandlers,
ReadTimeout: 40 * time.Second,
WriteTimeout: 40 * time.Second,
ReadTimeout: 90 * time.Second,
WriteTimeout: 90 * time.Second,
MaxHeaderBytes: 1 << 20,
}
httpServer.ListenAndServe()
Expand Down
2 changes: 1 addition & 1 deletion utils/socks/socks.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (sprox Proxy) Create() (*http.Client, error) {
Dial: dialer.Dial,
DisableKeepAlives: true,
MaxIdleConnsPerHost: 1,
ResponseHeaderTimeout: time.Second * 45,
ResponseHeaderTimeout: time.Second * time.Duration(Timeout),
}
client := &http.Client{
Transport: tr,
Expand Down

0 comments on commit d8c0bf4

Please sign in to comment.