Re: [lwip-users] Issue with TCP raw API and messages larger than TCP_MSS

2017-04-10 Thread David Perlaza
Message- From: lwip-users [mailto:lwip-users-bounces+davidp=exceltech.com...@nongnu.org] On Behalf Of Sergio R. Caprile Sent: Monday, 10 April 2017 11:47 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] Issue with TCP raw API and messages larger than TCP_MSS Imagine your image data

Re: [lwip-users] Issue with TCP raw API and messages larger than TCP_MSS

2017-04-10 Thread Sergio R. Caprile
Imagine your image data is 3MB. Would you expect lwIP to buffer that on a 32KB microcontroller ? No, would you ? Right, that is, light-weight IP. The server will send bytes as it wants. TCP will send bytes as it wants. They will be put in IP and sent via Ethernet Each frame gets IP extracted,

Re: [lwip-users] Issue with TCP raw API and messages larger than TCP_MSS

2017-04-10 Thread Simon Goldschmidt
David Perlaza wrote: > Am I missing any configuration settings to enable the buffering of the entire > HTTP data before it gets processed in my tcp_recv callback? There's no such thing. Your application must be prepared to receive pbufs as they are received from the wire. The only exception is

[lwip-users] Issue with TCP raw API and messages larger than TCP_MSS

2017-04-10 Thread David Perlaza
Hi, I am currently writing a raw-API-based HTTP client to request and receive a still image from an IP camera. The HTTP response from the camera is about 7 kB in size, and because of the fact the image is in the JPEG format, the size of the message varies between messages. The problem I am