Skip to content

Commit 8811b0a

Browse files
committed
extmod/modwebrepl: Use bigger socket receive buffer.
The smaller chunks we send (and receive), the more packets there to receive, and higher chance to git internal packet buffer overflow in WiFi driver.
1 parent 12c61dd commit 8811b0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extmod/modwebrepl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ STATIC mp_uint_t _webrepl_read(mp_obj_t self_in, void *buf, mp_uint_t size, int
195195
}
196196

197197
if (self->data_to_recv != 0) {
198-
static byte filebuf[256];
198+
static byte filebuf[512];
199199
filebuf[0] = *(byte*)buf;
200200
mp_uint_t buf_sz = 1;
201201
if (--self->data_to_recv != 0) {

0 commit comments

Comments
 (0)