lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #46701] Non-standard close behavior can result in sock


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #46701] Non-standard close behavior can result in socket/netconn leaks
Date: Thu, 18 Feb 2016 19:09:23 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36

Follow-up Comment #4, bug #46701 (project lwip):

I can follow you on Stevens, but he doesn't talk about nonblocking sockets or
is he? I don't know if we're doing something wrong here or not.

By making nonblocking sockets behave like blocking sockets, you lose the
nonblocking thing, so it might be better to let close return and set a flag in
the netconn to dealloc on close success (and yes, always dealloc the socket in
close()).

I'm not sure I can follow you on comment #2 though.

The patch in comment #3 seems to dealloc socket/netconn too early without
freeing the pcb... or am I wrong?

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?46701>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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