tarantool / mqtt

Tarantool MQTT client
tarantool.org
BSD 2-Clause "Simplified" License
38 stars 10 forks source link

libmosquitto kills connection if there is no traffic over nat #9

Closed akimapilot closed 6 years ago

akimapilot commented 7 years ago

libmosquitto kills connection if there is no traffic over nat.

env: tarantool-mqtt/xenial 1.2.2-1 amd64 mosquitto version 1.4.8 (build date Tue, 23 May 2017 22:14:40 +0100) mosquitto is an MQTT v3.1 broker.

cyanide-burnout commented 7 years ago

I guess it is due to infinite timeout on read operation here - https://github.com/tarantool/mqtt/blob/master/mqtt/driver.c#L149

pjao commented 7 years ago

Any news about this?

It looks like in some cases it's causing freezes.

dedok commented 6 years ago

Hi,

Fixed in: 9f192fa1aa0a4e17858d4b6c903d53d44acc240f

dedok commented 6 years ago

Please check the fix, if it does not work then reopen the issue.

Thanks!