You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After checking the code, it seems that it is stucked in the infinite loop
in function MQTTAsync_receiveThread()
/* find client corresponding to socket /
if (ListFindItem(handles, &sock, clientSockCompare) == NULL)
{
Log(TRACE_MINIMUM, -1, "Could not find client corresponding to socket %d", sock);
/ Socket_close(sock); - removing socket in this case is not necessary (Bug 442400) */
continue;
}
my client version:
Trace Output
Product name: Paho Asynchronous MQTT C Client Library
Version: 1.1.0
Build level: 17:38--04-06-2018
OpenSSL version: OpenSSL 1.0.2k 26 Jan 2017
OpenSSL flags: compiler: /usr/local/ARC/arcp1/uclibc/bin/arc-linux-uclibc-gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DDSO_DLFCN -DHAVE_DLFCN_H -I/home/zli/work/sdk
OpenSSL build timestamp: built on: reproducible build, date unspecified
OpenSSL platform: platform: linux-arc
OpenSSL directory: OPENSSLDIR: "/usr/lib/ssl"
/proc/version: Linux version 2.6.35.12 (zli@ddfeerd) (gcc version 4.2.3 (ARC_2.3)) #10 Mon Jun 4 19:38:20 CST 2018
The text was updated successfully, but these errors were encountered:
CPU goes to 100% when mqtt server is started with no network
and it cannot recover when network comes back
when enabled log , i saw tremendous log printing repeately
19700101 150802.649 Could not find client corresponding to socket 6
19700101 150802.649 (2051) (1)> MQTTAsync_cycle:2814
19700101 150802.649 (2051) (2)> Socket_getReadySocket:217
19700101 150802.649 Return code 1 from read select
19700101 150802.649 (2051) (3)> Socket_continueWrites:776
19700101 150802.649 (2051) (3)< Socket_continueWrites:798 (0)
19700101 150802.649 Return code 1 from write select
19700101 150802.649 (2051) (3)> isReady:193
19700101 150802.649 (2051) (3)< isReady:198 (1)
19700101 150802.669 (2051) (2)< Socket_getReadySocket:283 (6)
19700101 150802.669 (2051) (2)> MQTTAsync_retry:2677
19700101 150802.669 (2051) (3)> MQTTProtocol_retry:629
19700101 150802.669 (2051) (3)< MQTTProtocol_retry:648
19700101 150802.669 (2051) (2)< MQTTAsync_retry:2687
19700101 150802.669 (2051) (1)< MQTTAsync_cycle:2946 (-1)
19700101 150802.669 Could not find client corresponding to socket 6
After checking the code, it seems that it is stucked in the infinite loop
in function MQTTAsync_receiveThread()
/* find client corresponding to socket /
if (ListFindItem(handles, &sock, clientSockCompare) == NULL)
{
Log(TRACE_MINIMUM, -1, "Could not find client corresponding to socket %d", sock);
/ Socket_close(sock); - removing socket in this case is not necessary (Bug 442400) */
continue;
}
my client version:
Trace Output
Product name: Paho Asynchronous MQTT C Client Library
Version: 1.1.0
Build level: 17:38--04-06-2018
OpenSSL version: OpenSSL 1.0.2k 26 Jan 2017
OpenSSL flags: compiler: /usr/local/ARC/arcp1/uclibc/bin/arc-linux-uclibc-gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DDSO_DLFCN -DHAVE_DLFCN_H -I/home/zli/work/sdk
OpenSSL build timestamp: built on: reproducible build, date unspecified
OpenSSL platform: platform: linux-arc
OpenSSL directory: OPENSSLDIR: "/usr/lib/ssl"
/proc/version: Linux version 2.6.35.12 (zli@ddfeerd) (gcc version 4.2.3 (ARC_2.3)) #10 Mon Jun 4 19:38:20 CST 2018
The text was updated successfully, but these errors were encountered: