Hi,
I have fixed my code (although I'm using sockets). It seems the socket
implementation was closing the connection even when there was pending data.
Enabling SO_LINGER cause the application to close the socket after all data
was sent, or a timeout occured.
The netconn solution also has a linger option, this might be the solution
you need?
netconn linger:
https://www.nongnu.org/lwip/2_0_x/structnetconn.html#a25ed06d944da0b0b9e7db5265be3fa3d
For more info on linger see (search for SO_LINGER)
http://man7.org/linux/man-pages/man7/socket.7.html
--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users