lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #50837] LWIP TCP/IP race condition


From: preet
Subject: [lwip-devel] [bug #50837] LWIP TCP/IP race condition
Date: Mon, 1 May 2017 20:14:13 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Follow-up Comment #15, bug #50837 (project lwip):

Tested with LWIP 2.0.2 with the same behavior.  I noticed this time that there
were KEEP-ALIVE probes being sent, as customized by my application but it was
still not being used to close the lingering/zombie connection.  The "mbox"
error count continues to climb while the CLIENT(windows/python) had already
disconnected.


---------------------------------
        WITH TIMEOUT
Captured before the test started:
---------------------------------
      : Avl/Usd/Max/Err
 Mbox :   -/ 12/ 12/  0
Mutex :   -/  1/  1/  0
  Sem :   -/ 11/ 11/  0
Memory:   0/ 64/1772/  0/0
TCP Errors: 0-C 0-E 0-L 0-M 0-O 0-P 0-T
TCP Counts: 6/5 (rx/tx) 0 dropped

                :  use/wmk/MAX - err
         UDP_PCB:   6/  6/8   - 0/0
         TCP_PCB:   1/  1/12  - 0/0
  TCP_PCB_LISTEN:   5/  5/8   - 0/0
         TCP_SEG:   2/  2/20  - 0/0
       REASSDATA:   0/  0/5   - 0/0
       FRAG_PBUF:   0/  0/8   - 0/0
          NETBUF:   0/  0/1   - 0/0
         NETCONN:  11/ 11/20  - 0/0
   TCPIP_MSG_API:   0/  0/8   - 0/0
 TCPIP_MSG_INPKT:   0/  2/24  - 0/0
     SYS_TIMEOUT:   5/  5/8   - 0/0
    PBUF_REF/ROM:   0/  0/8   - 0/0
       PBUF_POOL:   0/  0/0   - 0/0
       MALLOC_64:   1/  2/8   - 0/0
      MALLOC_128:   0/  2/8   - 0/0
      MALLOC_256:   1/  1/8   - 0/0
     MALLOC_1564:   1/  2/24  - 0/0
         
---------------------------------
Captured after the test
after CLIENT(windows/python) disconnected
---------------------------------
                :  use/wmk/MAX - err
         UDP_PCB:   6/  6/8   - 0/0
         TCP_PCB:   1/  2/12  - 0/0
  TCP_PCB_LISTEN:   5/  5/8   - 0/0
         TCP_SEG:   2/  3/20  - 0/0
       REASSDATA:   0/  0/5   - 0/0
       FRAG_PBUF:   0/  0/8   - 0/0
          NETBUF:   0/  0/1   - 0/0
         NETCONN:  11/ 12/20  - 0/0
   TCPIP_MSG_API:   0/  0/8   - 0/0
 TCPIP_MSG_INPKT:   0/  3/24  - 0/0
     SYS_TIMEOUT:   5/  5/8   - 0/0
    PBUF_REF/ROM:   0/  0/8   - 0/0
       PBUF_POOL:   0/  0/0   - 0/0
       MALLOC_64:   1/  2/8   - 0/0
      MALLOC_128:   0/  8/8   - 11/0
      MALLOC_256:   1/  3/8   - 0/0
     MALLOC_1564:   1/  6/24  - 0/0
         
         
         
         
         
---------------------------------
        WITHOUT TIMEOUT
Captured before the test started:
---------------------------------
      : Avl/Usd/Max/Err
 Mbox :   -/ 12/ 12/  0
Mutex :   -/  1/  1/  0
  Sem :   -/ 11/ 11/  0
Memory:   0/ 64/1860/  0/0
TCP Errors: 0-C 0-E 0-L 0-M 0-O 0-P 0-T
TCP Counts: 5/4 (rx/tx) 0 dropped

                :  use/wmk/MAX - err
         UDP_PCB:   6/  6/8   - 0/0
         TCP_PCB:   1/  1/12  - 0/0
  TCP_PCB_LISTEN:   5/  5/8   - 0/0
         TCP_SEG:   2/  2/20  - 0/0
       REASSDATA:   0/  0/5   - 0/0
       FRAG_PBUF:   0/  0/8   - 0/0
          NETBUF:   0/  0/1   - 0/0
         NETCONN:  11/ 11/20  - 0/0
   TCPIP_MSG_API:   0/  0/8   - 0/0
 TCPIP_MSG_INPKT:   0/  4/24  - 0/0
     SYS_TIMEOUT:   5/  5/8   - 0/0
    PBUF_REF/ROM:   0/  0/8   - 0/0
       PBUF_POOL:   0/  0/0   - 0/0
       MALLOC_64:   1/  2/8   - 0/0
      MALLOC_128:   0/  4/8   - 0/0
      MALLOC_256:   1/  1/8   - 0/0
     MALLOC_1564:   1/  2/24  - 0/0

         
---------------------------------
Captured after the test
---------------------------------
      : Avl/Usd/Max/Err
 Mbox :   -/ 13/ 13/ 57
Mutex :   -/  1/  1/  0
  Sem :   -/ 12/ 12/  0
Memory:   0/5360/6108/  0/0
TCP Errors: 0-C 0-E 0-L 0-M 0-O 0-P 0-T
TCP Counts: 630/219 (rx/tx) 7 dropped

                :  use/wmk/MAX - err
         UDP_PCB:   6/  6/8   - 0/0
         TCP_PCB:   2/  2/12  - 0/0
  TCP_PCB_LISTEN:   5/  5/8   - 0/0
         TCP_SEG:   5/  5/20  - 0/0
       REASSDATA:   0/  0/5   - 0/0
       FRAG_PBUF:   0/  0/8   - 0/0
          NETBUF:   0/  0/1   - 0/0
         NETCONN:  12/ 12/20  - 0/0
   TCPIP_MSG_API:   0/  0/8   - 0/0
 TCPIP_MSG_INPKT:   0/  4/24  - 0/0
     SYS_TIMEOUT:   5/  5/8   - 0/0
    PBUF_REF/ROM:   0/  0/8   - 0/0
       PBUF_POOL:   0/  0/0   - 0/0
       MALLOC_64:   1/  2/8   - 0/0
      MALLOC_128:   8/  8/8   - 37/0
      MALLOC_256:   2/  2/8   - 0/0
     MALLOC_1564:   5/  5/24  - 0/0
         
      : Avl/Usd/Max/Err
 Mbox :   -/ 13/ 13/171
Mutex :   -/  1/  1/  0
  Sem :   -/ 12/ 12/  0
Memory:   0/5360/7156/  0/0
TCP Errors: 0-C 0-E 0-L 0-M 0-O 0-P 0-T
TCP Counts: 656/238 (rx/tx) 8 dropped

                :  use/wmk/MAX - err
         UDP_PCB:   6/  6/8   - 0/0
         TCP_PCB:   2/  2/12  - 0/0
  TCP_PCB_LISTEN:   5/  5/8   - 0/0
         TCP_SEG:   5/  5/20  - 0/0
       REASSDATA:   0/  0/5   - 0/0
       FRAG_PBUF:   0/  0/8   - 0/0
          NETBUF:   0/  0/1   - 0/0
         NETCONN:  12/ 12/20  - 0/0
   TCPIP_MSG_API:   0/  0/8   - 0/0
 TCPIP_MSG_INPKT:   0/  4/24  - 0/0
     SYS_TIMEOUT:   5/  5/8   - 0/0
    PBUF_REF/ROM:   0/  0/8   - 0/0
       PBUF_POOL:   0/  0/0   - 0/0
       MALLOC_64:   1/  2/8   - 0/0
      MALLOC_128:   8/  8/8   - 169/0
      MALLOC_256:   2/  4/8   - 0/0
     MALLOC_1564:   5/  6/24  - 0/0

         
      : Avl/Usd/Max/Err
 Mbox :   -/ 13/ 13/300
Mutex :   -/  1/  1/  0
  Sem :   -/ 12/ 12/  0
Memory:   0/5360/7264/  0/0
TCP Errors: 0-C 0-E 0-L 0-M 0-O 0-P 0-T
TCP Counts: 662/243 (rx/tx) 8 dropped

                :  use/wmk/MAX - err
         UDP_PCB:   6/  6/8   - 0/0
         TCP_PCB:   2/  2/12  - 0/0
  TCP_PCB_LISTEN:   5/  5/8   - 0/0
         TCP_SEG:   5/  5/20  - 0/0
       REASSDATA:   0/  0/5   - 0/0
       FRAG_PBUF:   0/  0/8   - 0/0
          NETBUF:   0/  0/1   - 0/0
         NETCONN:  12/ 12/20  - 0/0
   TCPIP_MSG_API:   0/  0/8   - 0/0
 TCPIP_MSG_INPKT:   0/  4/24  - 0/0
     SYS_TIMEOUT:   5/  5/8   - 0/0
    PBUF_REF/ROM:   0/  0/8   - 0/0
       PBUF_POOL:   0/  0/0   - 0/0
       MALLOC_64:   1/  2/8   - 0/0
      MALLOC_128:   8/  8/8   - 232/0
      MALLOC_256:   2/  4/8   - 0/0
     MALLOC_1564:   5/  6/24  - 0/0
         



(file #40548, file #40549)
    _______________________________________________________

Additional Item Attachment:

File name: lwip202_with_timeout.pcapng    Size:217 KB
File name: lwip202_WITHOUT_timeout.pcapng Size:251 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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