-
Notifications
You must be signed in to change notification settings - Fork 557
Open
Labels
Description
Hi Guys,
I created a mqtt.Client with SetWriteTimeout(time.Second * 10)
.
But when I call
//...
token := (*mqttConnection).Publish(b.topic, b.qos , false, msg)
if token.Wait(); token.Error() != nil {
log.Println("MQTT SEND ERROR: ", token.Error())
return token.Error()
}
log.Println("Sended")
Then I blocked mqtt broker with iptables. After that Publish blocks and doesn't return.
But shouldn't it fails after 10 seconds?
T