lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #46685] pcb->accepts_pending is not decreased


From: PIPON
Subject: [lwip-devel] [bug #46685] pcb->accepts_pending is not decreased
Date: Thu, 07 Jan 2016 09:40:13 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #3, bug #46685 (project lwip):

Hello Joël

I have a look to the former bug but it’s not the same behaviour : in my case
the connexion succeeded and is closed by the client.


My code is 
 
void ftpd_init (void)
{
    pcb = tcp_new();
    tcp_bind (pcb, IP_ADDR_ANY, 21);
    pcb = tcp_listen (pcb);
    tcp_accept (pcb, ftpd_msgaccept);
}

I'm using tcp_listen_with_backlog to listen the port

I tried different modification of the tcp_pcb_purge without success
My test is making an active ftp connection with winSCP, when succeeded I close
the connection and open a new one : let's do that six times
 
Active PCB states:
Local port 23, foreign port 53409 snd_nxt 7227 rcv_nxt 1291642576 State:
ESTABLISHED
Local port 21, foreign port 53420 snd_nxt 6929 rcv_nxt 3585840680 State:
ESTABLISHED
Listen PCB states:
Local port 21, foreign port 10 snd_nxt 0 rcv_nxt 3452816845 State: LISTEN
++pending:0
Local port 23, foreign port 20 snd_nxt 0 rcv_nxt 3452816845 State: LISTEN
++pending:0
TIME-WAIT PCB states:
Local port 20, foreign port 53421 snd_nxt 6726 rcv_nxt 1313920599 State:
TIME_WAIT

The connexion succeeded : I close it and open a new one six times …
 
Active PCB states:
Local port 23, foreign port 53409 snd_nxt 7725 rcv_nxt 1291642582 State:
ESTABLISHED
Local port 21, foreign port 53494 snd_nxt 8775 rcv_nxt 955443436 State:
CLOSE_WAIT
Local port 21, foreign port 53488 snd_nxt 8396 rcv_nxt 3055508506 State:
CLOSE_WAIT
Local port 21, foreign port 53481 snd_nxt 8037 rcv_nxt 1950718764 State:
CLOSE_WAIT
Local port 21, foreign port 53477 snd_nxt 7697 rcv_nxt 3149222811 State:
CLOSE_WAIT
Local port 21, foreign port 53469 snd_nxt 7379 rcv_nxt 684387631 State:
CLOSE_WAIT
Local port 21, foreign port 53466 snd_nxt 7086 rcv_nxt 4403644 State:
CLOSE_WAIT
Local port 21, foreign port 53420 snd_nxt 6948 rcv_nxt 3585840689 State:
CLOSE_WAIT
Listen PCB states:
Local port 21, foreign port 10 snd_nxt 0 rcv_nxt 3452816845 State: LISTEN
++pending:0
Local port 23, foreign port 20 snd_nxt 0 rcv_nxt 3452816845 State: LISTEN
++pending:0
TIME-WAIT PCB states:

The sockets are in *CLOSE_WAIT* states and  the accept_pending was increased
but not decreased …..

During the transition from *ESTABLISHED* to *CLOSE_WAIT* I don’t know what
was the listening pcb which increased the accept_pending variable so I could
not decreased it here….



Best Regards


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/




reply via email to

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