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

Submitted by:  Oleg Tyshev <olegreen>
Submitted on:  Tue 08 Dec 2009 10:51:32 AM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned 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>
Project 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>

 

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
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by olegreen (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 08 Dec 2009 01:40:25 PM UTCgoldsimonStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Tue 08 Dec 2009 10:51:32 AM UTColegreenAttached File-=>Added tcp_input.patch, #19220

    Back to the top


    Powered by Savane 3.1-cleanup1