lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Issue with netconn_close closing connection before netc


From: ricardoschoof
Subject: Re: [lwip-users] Issue with netconn_close closing connection before netconn_write's have completed
Date: Thu, 23 May 2019 06:45:24 -0700 (MST)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]