ruby-mqtt icon indicating copy to clipboard operation
ruby-mqtt copied to clipboard

MQTT client on weak CPU and high traffic environment

Open cosmo0920 opened this issue 3 years ago • 0 comments

When flood of messages are reached in this client on weak CPU environment, keep_alive! response may not reached until response timeout and causes MQTT::ProtocolException with "No Ping Response received for xxx seconds":

Protocol error occurs in in_mqtt.,MQTT::ProtocolException,No Ping Response received for 23 seconds
/media/Data2/Gitrepo/ruby-mqtt/lib/mqtt/client.rb:541:in `keep_alive!'
/media/Data2/Gitrepo/ruby-mqtt/lib/mqtt/client.rb:474:in `receive_packet'
/media/Data2/Gitrepo/ruby-mqtt/lib/mqtt/client.rb:272:in `block in connect'

cosmo0920 avatar Dec 09 '20 06:12 cosmo0920