Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Is test_mqtt4async hanging?

Hi all,

Am I doing something wrong or the test_mqtt4async is hanging?

In the test2(), it succeeds subscribing to the "nosubscribe" topic
[https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L524].

I guess it should fail, calling the test2_onSubscribe2(). Which in
turn should call the test2_onDisconnect(). Then setting the
test_finished to 1
[https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L464].

However, the code loops forever testing the test_finished variable
[https://github.com/eclipse/paho.mqtt.c/blob/develop/test/test_mqtt4async.c#L576-L581].
Which never gets set to 1.

Best regards,
-- 
Guilherme Maciel Ferreira
Site: http://guilhermemacielferreira.com/


Back to the top