Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[A6] - ### Buffer overflow #56

Closed
mcr-ksh opened this issue Jul 17, 2017 · 3 comments
Closed

[A6] - ### Buffer overflow #56

mcr-ksh opened this issue Jul 17, 2017 · 3 comments

Comments

@mcr-ksh
Copy link

mcr-ksh commented Jul 17, 2017

Hi,

so at some point internally it seems the response causes to exceed TINY_GSM_RX_BUFFER

+CIPRCV:1,349,### Buffer overflow: 349 -> 255

if I increase the buffer by
#define TINY_GSM_RX_BUFFER 512

its ok.
+CIPRCV:1,349,### Got: 349 -> 511

on a A20 by default the buffer of 256 is easily exceeded and the connection will stall. Is there a way to limit the CIPRECV on the A20 or to increase the buffer only?

@mcr-ksh mcr-ksh changed the title ### Buffer overflow A20/A6 - ### Buffer overflow Jul 19, 2017
@mcr-ksh mcr-ksh changed the title A20/A6 - ### Buffer overflow [A6] - ### Buffer overflow Jul 19, 2017
@vshymanskyy
Copy link
Owner

Unfortunately I didn't see an option to limit the size of buffer. That's why It may require much bigger buffers (and more expensive main controller).
If you find any ideas/ways to workaround this limitation, please re-open the issue.

@yi-ge
Copy link

yi-ge commented Oct 22, 2017

I have the Same Problem.

@SRGDamia1
Copy link
Collaborator

The ESP8266 also has this problem. I haven't seen any way to decrease the receive buffer for it, either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants