Skip to content

Commit

Permalink
Put timeouts for 2 minutes stale connections
Browse files Browse the repository at this point in the history
  • Loading branch information
9seconds committed Jul 9, 2018
1 parent ce8168b commit c74d4d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrappers/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const (
)

const (
connTimeoutRead = 5 * time.Minute
connTimeoutWrite = 5 * time.Minute
connTimeoutRead = 2 * time.Minute
connTimeoutWrite = 2 * time.Minute
)

// Conn is a basic wrapper for net.Conn providing the most low-level
Expand Down

0 comments on commit c74d4d6

Please sign in to comment.