Skip to content

Commit

Permalink
Mqtt: add write timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Oct 8, 2024
1 parent a8df65f commit c5d3168
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions provider/mqtt/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func NewClient(log *util.Logger, broker, user, password, clientID string, qos by
options.SetOnConnectHandler(mc.ConnectionHandler)
options.SetConnectionLostHandler(mc.ConnectionLostHandler)
options.SetConnectTimeout(request.Timeout)
options.SetWriteTimeout(request.Timeout)

tlsConfig := &tls.Config{
InsecureSkipVerify: insecure,
Expand Down

0 comments on commit c5d3168

Please sign in to comment.