Closed JuergenKosel closed 6 years ago
Optimally, we could unlock the socket mutex in Socket_getReadySocket() around the first select call:
if ((rc = select(s.maxfdp1, &(s.rset), &pwset, NULL, &timeout)) == SOCKET_ERROR)
as this is where the time is spent waiting for socket activity. This would entail passing a pointer to the socket mutex into the getReadySocket call.
Hello Ian,
I have done this in commit 341037269e00da935602c34c6aa4efe4d295e3bd and it looks like that this improves the performance again. (Not measured yet)
Greetings Juergen
Hello,
while continuing testing for issue #373 a segmentation fault was caused in the following line: https://github.com/eclipse/paho.mqtt.c/blob/c85e4a2fd6e96ebc35caef99a024d94c9b664ba0/src/MQTTAsync.c#L1099
Output from gdb: