eclipse / paho.mqtt-sn.embedded-c

Paho C MQTT-SN gateway and libraries for embedded systems. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
314 stars 178 forks source link

MQTT-SN Gateway does not accept client connection #44

Closed t-kitagw closed 7 years ago

t-kitagw commented 7 years ago

Hi all.

When the number of client connections reaches the upper limit (MAX_CLIENTS), GW will not accept connections from clients. However, even after the client disconnects and the number of client connections decreases, new client does not connect. Specifically, GW does not respond to SEARCHGW from client. Is the number of client connections (_clientCnt) not well managed?

ty4tw commented 7 years ago

Thank for your info. I fixed them.

ty4tw commented 7 years ago

Hi Kitagw, How is your test going on? If you can not get the code, try bellow.

git clone -b gateway https://github.com/ty4tw/paho.mqtt-sn.embedded-c.git

t-kitagw commented 7 years ago

Hi Tomoaki, Thank you for your info and sorry for my late reply. The test is going well. It's good idea to show a log message "Client was rejected" After KeepAlive timeout of clients, new clients successfully connect to GW. Thank you.

icraggs commented 7 years ago

Can this bug be closed now?