buglwIP - A Lightweight TCP/IP stack - Bugs: bug #47743, Closing listening tcp pcb is not...

 
 

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

bug #47743: Closing listening tcp pcb is not posible without assert

Submitter:  Jan Breuer <jan_breuer>
Submitted:  Wed 20 Apr 2016 06:07:27 PM UTC
   
 
Category:  TCP Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Tue 26 Apr 2016 11:25:41 AM UTC, comment #1: 

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Wed 20 Apr 2016 06:07:27 PM UTC, original submission:  

Closing listening tcp pcb is not posible without assert.

tcp_listen_closed could not satisfy pcb->state == LISTEN

In function tcp_close_shutdown
there is section
case LISTEN:
and there is sequence
tcp_pcb_remove
tcp_listen_closed

problem is, that tcp_pcb_remove sets state to CLOSE
and after that tcp_listen_closed verifies, if state is still LISTEN and this can't be true.

I don't know internals of tcp so I can't fix this correctly.

Jan Breuer <jan_breuer>

 

(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 jan_breuer (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
    2016-04-26 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code