lwIP - A Lightweight TCP/IP stack - Bugs: bug #47485, tcp_close() should not fail on...
You are not allowed to post comments on this tracker with your current authentication level.
bug #47485: tcp_close() should not fail on memory error
Submitter: | Joel Cunningham <jcunningham> | ||
Submitted: | Mon 21 Mar 2016 02:37:30 PM UTC | ||
Category: | TCP | Severity: | 3 - Normal |
Item Group: | Change Request | Status: | Fixed |
Privacy: | Public | Assigned to: | goldsimon |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | git head |
Fri 10 Feb 2017 03:14:03 PM UTC, comment #4: |
Joel Cunningham <jcunningham> |
Thu 15 Dec 2016 09:25:38 PM UTC, comment #3: The problem I still see here is that tcp_send_fin() can fail in tcp_enqueue_flags() due to segment/pbuf allocation failure.
|
Simon Goldschmidt <goldsimon> |
Thu 21 Jul 2016 04:36:33 PM UTC, comment #2: The change for bug #48543 removes the requirement of having space in the send buffer to send a FIN. That eliminates the particular memory error case I had encountered when trying to close a non-blocking socket with a full send buffer.
|
Joel Cunningham <jcunningham> |
Mon 20 Jun 2016 02:35:37 PM UTC, comment #1: Simon,
|
Joel Cunningham <jcunningham> |
Mon 21 Mar 2016 02:37:30 PM UTC, original submission:
lwip_netconn_do_close_internal() will keep the calling thread (which issued close()) blocked if a memory error is encountered.
|
Joel Cunningham <jcunningham> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2017-02-10 | goldsimon | Status | None | Fixed | |
Assigned to | None | goldsimon | |||
Open/Closed | Open | Closed | |||
2016-12-15 | goldsimon | Category | sockets/netconn | TCP | |
Summary | lwip_netconn_do_close_internal blocks caller during memory error | tcp_close() should not fail on memory error |
Powered by Savane 3.13-4448.
Corresponding source code
Small typo here, function name should be "tcp_close_shutdown_fin()"
Glad to see this fix :)