lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] Re: queuelen accounting


From: Samuel Thibault
Subject: [lwip-devel] Re: queuelen accounting
Date: Thu, 25 Oct 2007 11:39:09 +0100
User-agent: Mutt/1.5.12-2006-07-14

Kieran Mansley wrote:
> On Wed, 2007-10-24 at 12:15 +0100, Samuel Thibault wrote:
> 
> > 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...
> 
> That code is creating two pbufs - one for the headers, and one for the
> payload.

Ah ok, I missed that.  Well actually, now that I fixed my "sleep in
interrupt" bug and can start working further, I got another assertion
failing in tcp_enqueue: "tcp_enqueue: pbufs on queue => at least one
queue non-empty", so there's probably a problem somewhere else indeed.

Thanks,
Samuel




reply via email to

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