arduino-esp32
arduino-esp32 copied to clipboard
allow HTTPClient to handle large payloads, in case the client (such as WifiClientSecure) does not
Description of Change
WiFiClient handles large write() by breaking it down and sending the whole thing in pieces, but WiFiClientSecure may just do a partial send and return the partial size, causing this to fail and return HTTPC_ERROR_SEND_PAYLOAD_FAILED
Tests scenarios
I have tested this successfully on an ESP32-S2 by posting a large jpeg file to an https server successfully.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
@r-downing thank you for your contribution! Could you please provide a simple example demonstrating the fixed and unfixed state?
@r-downing thank you for your contribution! Could you please provide a simple example demonstrating the fixed and unfixed state?
I don't currently have access to the code or hardware I was working on when I encountered the issue originally, but I could try to generate a quick example if needed.
Basically in any case where you send a large payload (1000's of bytes) with HTTPClient and WifiClientSecure it will get cut off.
if needed
Yes, please.
Closing because already implemented here: https://github.com/espressif/arduino-esp32/pull/8006