lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #62231] LwIP tcp socket stalls when "plug pulled", cre


From: Brendan McDonnell
Subject: [lwip-devel] [bug #62231] LwIP tcp socket stalls when "plug pulled", creates leak when closed
Date: Mon, 24 Jun 2024 16:56:59 -0400 (EDT)

Follow-up Comment #1, bug #62231 (group lwip):

I had a similar issue. In my case, the application had timed out and decided
to abort the transfer, but it was not telling the socket that it wanted to
abort (instead of normal shutdown/close), so the socket stayed alive, trying
to complete the transfer of the in-flight data (whose memory remained
allocated), until the socket timed out.

My solution when the application wants to abort close the connection is to use
lwip_setsockopt() to set linger on, 0 seconds, before lwip_shutdown() /
lwip_close(). As described here:

https://stackoverflow.com/a/41431236/1995714


    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?62231>

_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

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