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

Submitted by:  Simon Goldschmidt <goldsimon>
Submitted on:  Wed 29 Nov 2017 09:34:21 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  Simon Goldschmidt <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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.5