lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #47743] Closing listening tcp pcb is not posible witho


From: Jan Breuer
Subject: [lwip-devel] [bug #47743] Closing listening tcp pcb is not posible without assert
Date: Wed, 20 Apr 2016 18:07:29 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?47743>

                 Summary: Closing listening tcp pcb is not posible without
assert
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jan_breuer
            Submitted on: Wed 20 Apr 2016 06:07:27 PM GMT
                Category: TCP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?47743>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]