tarantool / mqtt

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

MQTT eats 100% CPU #7

Closed cyanide-burnout closed 7 years ago

cyanide-burnout commented 7 years ago

local mqtt = require('mqtt') local connection = mqtt.new("Registry-LastHeard", true) connection:connect({ host = 'localhost', port = 1883 })

dedok commented 7 years ago

Version is 'mosquitto version 1.4.11 (build date Mon, 20 Feb 2017 22:47:27 +0000) starting'

cyanide-burnout commented 7 years ago

https://github.com/tarantool/mqtt/blob/master/mqtt/driver.c#L79

Dedails of ussie descussed with @dedok

dedok commented 7 years ago

Fixed

dedok commented 7 years ago

The problem was here: https://github.com/tarantool/mqtt/blob/master/mqtt/driver.c#L97