Can't write exactly 64 KBytes to socket

yomboprime
Posts: 1
Joined: Mon Aug 21, 2017 7:47 pm

Can't write exactly 64 KBytes to socket

Postby yomboprime » 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:

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 :-)

Who is online

Users browsing this forum: No registered users and 78 guests