-
Notifications
You must be signed in to change notification settings - Fork 13.3k
WiFiClient write doesn't consider timeout #5668
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
Comments
#3257 is apparently for What do you expect The semantic of this So you would need a new "overall-timeout" API that would break the current data sending after that amount of time, knowing that it would destroy any ongoing protocol on that tcp connection. How much is |
You can check on how much data you can send immediately without any waiting, by reading |
First of all, thanks for the quick answer 🙂
The first comment of the pull request says "This change implements timeout during
I would expect that
It's between 100-200 bytes.
Ah okay, so a workaround would be to only send the message when |
I read further the first comment 😉 and I explained how this timeout is handled in
Yes, or as chunks if your protocol allows it. |
Okay i'll give it a try next week. Thanks for the help 👍 |
@d-a-v is correct. This timeout is meant for identifying a communication stall. In other words:
Not an issue in the core, closing. |
Basic Infos
Platform
Settings in IDE
Problem Description
Seems like the timeout isn't considered for write operations in my case.
When i run the following code and enter an area with bad wifi signal the write method returns after 300-400 ms but the timeout was set to 10 ms. It's blocking the rest of the program too long.
It's weird, because the problem should be fixed since #3257
Sketch
The text was updated successfully, but these errors were encountered: