Skip to content

Commit

Permalink
Update connection timeout timers
Browse files Browse the repository at this point in the history
  • Loading branch information
ghettovoice committed Dec 13, 2019
1 parent 38ff90c commit 236b9a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (

var (
bufferSize uint16 = 65535 - 20 - 8 // IPv4 max size - IPv4 Header size - UDP Header size
readTimeout = 30 * time.Second
writeTimeout = 30 * time.Second
readTimeout = time.Minute
writeTimeout = time.Minute
)

// Wrapper around net.Conn.
Expand Down
1 change: 1 addition & 0 deletions transport/listener_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ func NewListenerHandler(
WithFields(log.Fields{
"listener_handler_ptr": fmt.Sprintf("%p", handler),
"listener_key": key,
"listener_ptr": fmt.Sprintf("%p", listener),
})

return handler
Expand Down

0 comments on commit 236b9a6

Please sign in to comment.