aboutsummaryrefslogtreecommitdiff
path: root/extmod/modwebrepl.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-29 18:42:45 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-29 18:43:19 +0300
commit8811b0af9c73baf37caa2e7bf4842f4518447026 (patch)
tree782c7c28b424d691d627feb5bddd87f1d2be594e /extmod/modwebrepl.c
parent12c61dddddb52af0d02f89c5679bfc911ae3df90 (diff)
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.
Diffstat (limited to 'extmod/modwebrepl.c')
-rw-r--r--extmod/modwebrepl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modwebrepl.c b/extmod/modwebrepl.c
index b0757b288..57792796c 100644
--- a/extmod/modwebrepl.c
+++ b/extmod/modwebrepl.c
@@ -195,7 +195,7 @@ STATIC mp_uint_t _webrepl_read(mp_obj_t self_in, void *buf, mp_uint_t size, int
}
if (self->data_to_recv != 0) {
- static byte filebuf[256];
+ static byte filebuf[512];
filebuf[0] = *(byte*)buf;
mp_uint_t buf_sz = 1;
if (--self->data_to_recv != 0) {