buglwIP - A Lightweight TCP/IP stack - Bugs: bug #28225, 2nd tcp_connect error after close...

 
 

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

bug #28225: 2nd tcp_connect error after close of pcb

Submitter:  Oleg Tyshev <olegreen>
Submitted:  Tue 08 Dec 2009 10:51:32 AM UTC
   
 
Category:  TCP Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Tue 08 Dec 2009 11:56:24 AM UTC, comment #2: 

Sorry, it is my error.
You can close this issue.

Oleg Tyshev <olegreen>
Tue 08 Dec 2009 11:37:04 AM UTC, comment #1: 

Are you sure about that? I added "tcp_input_pcb = NULL;" at the end of the "if (err != ERR_ABRT)" block (just before "/* give up our reference to inseg.p */") that should always be called before exiting tcp_input().

Simon Goldschmidt <goldsimon>
Group administrator
Tue 08 Dec 2009 10:51:32 AM UTC, original submission:  

This error appeared after

bug #27904: TCP sends too many ACKs: delay resetting tcp_input_pcb until after calling the pcb's callbacks

tcp_input_pcb is not always NULL on the exit of tcp_input().
As result, if connection closed, tcp_input_pcb is not NULL,
tcp_connect() allocates the same pcb and can't send SYN.

Applied patch fixes this problem.

Oleg Tyshev <olegreen>

 

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

Attached Files
file #19220:  tcp_input.patch added by olegreen (680B - text/x-patch)

 

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 olegreen (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
    2009-12-08 goldsimon StatusNone Invalid
        Open/ClosedOpen Closed
    2009-12-08 olegreen Attached File- Added tcp_input.patch, #19220

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code