Skip to content

Commit

Permalink
Add default idle timeout (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Jan 2, 2020
1 parent 909ac01 commit 9418bd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meters/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func NewTCPClientHandler(device string) *modbus.TCPClientHandler {

// set default timings
handler.Timeout = 1 * time.Second
handler.IdleTimeout = 5 * time.Second
handler.ProtocolRecoveryTimeout = 10 * time.Second
handler.LinkRecoveryTimeout = 15 * time.Second

Expand Down

0 comments on commit 9418bd4

Please sign in to comment.