Hi, just discovered that I cannot write to a WiFiClient (WiFiClient.h) exactly 65536 bytes. I've tested some numbers of bytes from 1 to 80KBytes including 65535 and 65537 and it works fine. But with 64k I get this error in the Serial:
Code: Select all
[E][WiFiClient.cpp:223] write(): 104
The error happens in:
Code: Select all
size_t WiFiClient::write(const uint8_t *buf, size_t size)
Even if I split the 64k write into two consecutive 32k writes, this error happens.
I'm using Platformio with the 'esp32' target.
I don't care much about the bug because it is easily avoidable, but it is a bug.
PS: This is my first post and I'm having lots of fun with the esp32