I'm using zedboard for TCP client server communication using LWIP Raw API. Assigning Zedboard as a client and host PC as a server I'm able to send data from board and receive at the host PC. But, when I try to transfer continuous data transfer from board, application is exiting with "No memory for zero copy pbuf" . Please check my code below for further information. I'm running a simple winsock application at server side to just receive data and nothing else. I've checked send_queue and its increasing with each packet transfer from application. Since I'm a newbie in this board so I dont know expected values.Default value of TCP_SND_BUF is 8192 but I changed in my code to 16384 because earlier board(client) wasn't able to connect to server. I've searched online and checked various forums but no success in debugging.
Tool: Xilinx SDK 2017.4, LWIP 1.4.1
Since we need Standalone application so using Raw API