Skip to content

Commit f22ed52

Browse files
Increase ClientContext write(Stream) to 256b chunk (#1042)
Other parts of the core use temp 256 byte chunks to transmit/move/operate on data, so do the same here. Will increase effective WebServer sendFile speeds.
1 parent 03dbd6a commit f22ed52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/include/ClientContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ class ClientContext {
374374
return 0;
375375
}
376376
size_t sent = 0;
377-
uint8_t buff[128];
377+
uint8_t buff[256];
378378
while (stream.available()) {
379379
// Stream only lets you read 1 byte at a time, so buffer in local copy
380380
size_t i;

0 commit comments

Comments
 (0)