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: Wed, 06 Jan 2016 09:01:20 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0

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

{{note|Waiting for a better solution I added a *bold*tcp_accepted*bold* call
when a connection is established....}} 


tcp_input () {
.....
        if (lpcb != NULL) {
            /* Move this PCB to the front of the list so that subsequent
               lookups will be faster (we exploit locality in TCP segment
               arrivals). */
            if (prev != NULL) {
                ( (struct tcp_pcb_listen *) prev)->next = lpcb->next;
                /* our successor is the remainder of the listening list */
                lpcb->next = tcp_listen_pcbs.listen_pcbs;
                /* put this listening pcb at the head of the listening list
*/
                tcp_listen_pcbs.listen_pcbs = lpcb;
            }
            LWIP_DEBUGF (TCP_INPUT_DEBUG, ("tcp_input: packed for LISTENing
connection.rn"));
            tcp_listen_input (lpcb);
            tcp_accepted (lpcb); //ADD//
            pbuf_free (p);
            return;
        }
.....
}


    _______________________________________________________

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]