Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WiFi shield client does not release socket on connect fail (with fix) #1720
The wifi shield client code is not releasing the socket when the connection fails. This results in the client using all the sockets in 4 failed attempts, and the connection will fail until the Arduino is reset/rebooted.
No. This is a separate issue. UDP does not establish a connection like TCP. The section of code this bug is in has nothing to do with UDP. I provided a fix above that has been tested. It was simply a single line omission in the code.
If you think it is the same, install the fix above and try UDP. It won't fix the UDP problem.
This is tested on IDE v1.0.5 with the v1.1.0 firmware upgrade.
I tested UDP and did not find the socket release problem discussed in the other issue.
Here is my socket test. Install it and call it between UDP transactions. It was instrumental in troubleshooting the client socket fail.