Skip to content

WifiClient setTimeout problem #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
der-Lemmi opened this issue Apr 25, 2017 · 4 comments
Closed

WifiClient setTimeout problem #330

der-Lemmi opened this issue Apr 25, 2017 · 4 comments

Comments

@der-Lemmi
Copy link

wen setting a timeout:
Wificlient client = server.avalible();
client.setTimeout(2000);
...
while(client.connected()) {
if(client.availible()) {
...
this will have no effect.

If a client is connected and sends no data -> server hangs in the client.connected() loop because the timeout will not terminate the client.

@bbx10
Copy link
Contributor

bbx10 commented May 16, 2017

#377 might be related to this problem.

@me-no-dev
Copy link
Member

Can you please try the latest code?

@der-Lemmi
Copy link
Author

seems to work now!

I logged for 24h and all clients with no data requests are got the timeout :-)

@marioelectron
Copy link

serverClients[i].setTimeout(1);
serverClients[i].print(PString) ; /// when the wireless is lost it gets stuck in the mission serverClients[i].print(PString) esp32 not
//timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants