lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] queuelen accounting


From: Samuel Thibault
Subject: [lwip-devel] queuelen accounting
Date: Wed, 24 Oct 2007 12:15:38 +0100
User-agent: Mutt/1.5.12-2006-07-14

Hello,

I'm always getting 

if (pcb->snd_queuelen != 0) {
  LWIP_ASSERT("tcp_receive: valid queue length", pcb->unacked != NULL ||
              pcb->unsent != NULL);
}

assertion failures.

There's a line of code I don't understand in the queuelen accounting: in
tcp_out.c:247, "++queuelen;".  Why is there such incrementation while
queuelen is increased by pbuf_clen(seg->p) a few lines later?  On the
decreasing side, there is no corresponding --pcb->snd_queulen.
Actually, dropping ++queuelen; makes the assertion always work...

Regards,
Samuel




reply via email to

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