-
Notifications
You must be signed in to change notification settings - Fork 13.3k
HTTPClient writeToStream times out with 3.0.0 #8055
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
After further debugging: |
I think @earlephilhower 's fork made for this core already helps. |
I guess this would degrade performance by quite a lot Wouldn't it be an option to replace Arduino/cores/esp8266/StreamSend.cpp Line 85 in 8dc80b5
with w = w ? std::min(w, avpk) : avpk;
Comment for |
|
But that means that if Print* is like "I can never guarantee a non-blocking write" (i.e. always return |
That's true. So The stream::send API is currently unusable when |
I just took a closer look at this and it looks like performance impact might be nearly not existing. So I'll give this a try. |
|
I made a try and I get |
In Case someone needs a workaround, I just use my own StreamFile" now:
|
Platform
Settings in IDE
Problem Description
Using HTTPClients writeToStream with 3.0.0 fails with a timeout, while the same code worked fine with 2.6.3
Increasing the timeout (e.g. setTimeout(10000)) does not help, but increase the time it takes until the timeout happens.
MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: