eclipse / paho.mqtt.m2mqtt

Eclipse Public License 1.0
519 stars 303 forks source link

significant delay when publishing with qos 1 or 2 #90

Closed saqirltu closed 6 years ago

saqirltu commented 6 years ago

Hi,

I'm creating a MQTT client to publish and subscribe in Unity. I have the broker on a server on local network. When I use QOS 0 to publish, the latency is 1~5ms. But when I use QOS 1 or 2 to publish, the latency turns to 200ms. Both test results remain the same regardsless of different subscribing QOS.

Could there be any hint for this isssue? Many thanks!

saqirltu commented 6 years ago

problem solved after setting TCP_DELAY to false in the config