How to handle “Big TCP” packets in LwIP
Hello forum members
I’m busy with the implementation of a TCP server that needs to handle a TCP connection with already existing PC application that I can’t change.
Everything works well as long the packets are not longer then 1500 bytes. When the packets are longer than this “magic number” LwIP is separating the packets in more than 1 piece. Is there a way to know the original length of the original packet?
See print screen Wireshark: Packet with length: 1876.

Debug from the controller:
First read:

Second read:

How can I detect that these 2 reads (netconn_recv) are 1 packet? Instead of 2. I use the NETCONN API.
The connection is made at the beginning and never closed during the executing of the PC application.
Kind Regards
