lwIP - A Lightweight TCP/IP stack - Bugs: bug #39340, Raw API changed regarding TCP...
You are not allowed to post comments on this tracker with your current authentication level.
bug #39340: Raw API changed regarding TCP connections closing
Submitter: | Bill Auerbach <billauerbach> | ||
Submitted: | Tue 25 Jun 2013 01:18:11 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | 1.4.1 |
Fri 28 Jun 2013 07:11:36 PM UTC, comment #5: |
Simon Goldschmidt <goldsimon> |
Wed 26 Jun 2013 09:02:20 PM UTC, comment #4: This can be closed.
|
Bill Auerbach <billauerbach> |
Tue 25 Jun 2013 08:16:41 PM UTC, comment #3: I think the documentation could be clearer in that normal closes use tcp-recv and RST type closes use tcp_err and that both must be implemented to detect connection closes. What stung me is that I didn't know connections were closing with RST since nothing is different (that I see) from the PC application standpoint.
|
Bill Auerbach <billauerbach> |
Tue 25 Jun 2013 06:15:29 PM UTC, comment #2: The current API implementation should be that recv(NULL) is called on normal close while err() is called when RST is received or if the connection is closed due to lwIP running out of resources or something like that.
|
Simon Goldschmidt <goldsimon> |
Tue 25 Jun 2013 04:28:47 PM UTC, comment #1: Follow up: It turns out that the PC, on these closes, is sending an RST - it is not a normal close (although the code on the PC is doing nothing to terminate the connection unusually). I also have a Telnet connection open and its close does not send the RST.
|
Bill Auerbach <billauerbach> |
Tue 25 Jun 2013 01:18:11 PM UTC, original submission:
There is a condition in lwIP when a connection is closed by the remote end that the tcp_recv callback is not called with a NULL pbuf pointer to signal the connection was closed. The documented behavior in rawapi.txt in the 1.4.1 release is that it should.
|
Bill Auerbach <billauerbach> |
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 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2013-06-28 | goldsimon | Status | None | Invalid | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-caa5.
Corresponding source code
Closing as invalid :-)