buglwIP - A Lightweight TCP/IP stack - Bugs: bug #57639, lwip_close or lwip_shutdown...

 
 

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

bug #57639: lwip_close or lwip_shutdown doesn't cancel blocking lwip_recv

Submitter:  Benjamin K <bkausbk>
Submitted:  Mon 20 Jan 2020 07:29:20 AM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Duplicate
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  2.1.1

Mon 20 Jan 2020 10:23:28 AM UTC, comment #3: 

That statement is outdated and will be removed before the next release. However, there's still at least one bug in there (bug 57445) that needs to be fixed.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 20 Jan 2020 10:06:57 AM UTC, comment #2: 

You said "it has been fixed long time ago" however the documentation for this option says contains the following statement:

"ATTENTION: This is currently really alpha! Some requirements:"

My conclusion is, that the developers don't really seem to be very confident that it really works.

Benjamin K <bkausbk>
Mon 20 Jan 2020 08:19:16 AM UTC, comment #1: 

Sort of expected behaviour: to keep the footprint low, this is not supported by default.

However, if you want it, set LWIP_NETCONN_FULLDUPLEX=1 in your lwipopts.h and it should work.

Closing as duplicate since it has been fixed long ago.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 20 Jan 2020 07:29:20 AM UTC, original submission:  

While in one task lwip_recv is waiting for new data (and is blocking) it is not possible to close/shutdown the socket from a second task, at least the task that is waiting will never stop waiting. In such case lwip_recev should leave blocking state and return 0 or -1. This is not the expected socket behaviour.

Is this intended?

Benjamin K <bkausbk>

 

(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 (Posted a comment)
  • -email is unavailable- added by bkausbk (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-20 goldsimon StatusNone Duplicate
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code