Can't write exactly 64 KBytes to socket
Posted: Mon Aug 21, 2017 8:07 pm
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:
The error happens in:
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
Code: Select all
[E][WiFiClient.cpp:223] write(): 104
Code: Select all
size_t WiFiClient::write(const uint8_t *buf, size_t size)
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