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

2017-04-09 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 exp

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

2017-04-10 Thread David Perlaza
Hi Sergio, Thank you for your email. As I mentioned in my original post, I am using the raw API and the image data is around 7 kB in size. As you mentioned in your message, I copy the data in the pbuf into a larger buffer every time the callback is called. This continues until the connection is

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

2017-04-10 Thread David Perlaza
messages larger than TCP_MSS 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 w