mirror of https://github.com/eclipse/paho.mqtt.c
Add further poll debug
This commit is contained in:
parent
6a68f4420c
commit
8d1aa132c2
|
|
@ -237,8 +237,8 @@ int isReady(int index)
|
|||
|
||||
FUNC_ENTRY;
|
||||
|
||||
if (mod_s.saved.fds[index].revents & POLLHUP || mod_s.saved.fds[index].revents & POLLNVAL)
|
||||
; /* signal work to be done if there is an error on the socket */
|
||||
if ((mod_s.saved.fds[index].revents & POLLHUP) || (mod_s.saved.fds[index].revents & POLLNVAL))
|
||||
printf("isReady error on socket %d\n", mod_s.saved.fds[index].revents); /* signal work to be done if there is an error on the socket */
|
||||
else if (ListFindItem(mod_s.connect_pending, socket, intcompare) &&
|
||||
(mod_s.saved.fds[index].revents & POLLOUT))
|
||||
ListRemoveItem(mod_s.connect_pending, socket, intcompare);
|
||||
|
|
|
|||
|
|
@ -2715,7 +2715,10 @@ int main(int argc, char** argv)
|
|||
}
|
||||
else
|
||||
{
|
||||
MQTTAsync_setTraceLevel(MQTTASYNC_TRACE_PROTOCOL);
|
||||
if (options.test_no == 10)
|
||||
MQTTAsync_setTraceLevel(MQTTASYNC_TRACE_MINIMUM);
|
||||
else
|
||||
MQTTAsync_setTraceLevel(MQTTASYNC_TRACE_PROTOCOL);
|
||||
rc = tests[options.test_no](options); /* run just the selected test */
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1372,7 +1372,10 @@ int main(int argc, char** argv)
|
|||
}
|
||||
else
|
||||
{
|
||||
MQTTAsync_setTraceLevel(MQTTASYNC_TRACE_PROTOCOL);
|
||||
if (options.test_no == 8)
|
||||
MQTTAsync_setTraceLevel(MQTTASYNC_TRACE_MINIMUM);
|
||||
else
|
||||
MQTTAsync_setTraceLevel(MQTTASYNC_TRACE_ERROR);
|
||||
rc = tests[options.test_no](options); /* run just the selected test */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue