buglwIP - A Lightweight TCP/IP stack - Bugs: bug #52554, LWIP_NETCONN_FULLDUPLEX: closing...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #52554: LWIP_NETCONN_FULLDUPLEX: closing fails to end 'recv' calls correctly

Submitter:  Simon Goldschmidt <goldsimon>
Submitted:  Wed 29 Nov 2017 09:34:21 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  2.1.0
lwIP version:  git head

Wed 18 Apr 2018 08:06:59 PM UTC, comment #1: 

Should be fixed:
- netconn is not freed from lwip_close() directly but freeing it is delayed until fd_used gets 0
- shutdown and close don't drain the mbox in fullduplex mode but post a message that wakes up waiting threads and tell them the netconn is about to be deleted. Draining is done when the netconn is actually deleted

Simon Goldschmidt <goldsimon>
Group administrator
Wed 29 Nov 2017 09:34:21 PM UTC, original submission:  

- lwip_close() deallocates the netconn without checking fd_used
- both netconn_close_shutdown(RD) and netconn_delete() (called from lwip_close()) drain and deallocat the recvmbox, so recv threads may or may not get woken

Simon Goldschmidt <goldsimon>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-18 goldsimon StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code