Open GoogleCodeExporter opened 9 years ago
Additional information - If you lose connectivity by restarting the router and
it re-establishes within a small amount of time (within 10-15 seconds), the
server goes from 0 status to 1 and everything returns to normal. I'm trying to
determine the condition or amount of time that passes before it can no longer
restart the server more accurately. However,
I commented out:
//server not in listen state, restart it
if ((_ser_status == 0)&&(cycle_server_down++ > TH_SERVER_DOWN))
{
ServerDrv::startServer(_port, sock);
cycle_server_down = 0;
}
in "WiFiClient WiFiServer::available(byte* status)" and if you lose
connectivity for the short duration scenario, it no longer restarts the server
and the server remains dead.
Original comment by k...@vmfarms.com
on 29 Oct 2012 at 1:43
Please close this issue. The WiFi shield successfully disconnects and
reconnects and brings the server along with it.
I did some thorough debugging today and the issue is attributed to the server
having a stale client connection open after the arduino+wifi shield goes out of
range and the client disconnects from it. If there is no timeout written in to
the server and the client never gets stop() called on it, it will prevent
future client connections from happening. I will open up a separate issue for
the multiple connection issue.
Original comment by k...@vmfarms.com
on 30 Oct 2012 at 1:48
Original issue reported on code.google.com by
k...@vmfarms.com
on 29 Oct 2012 at 12:03