lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] tcp_enqueue problem, using socket:


From: Piero 74
Subject: [lwip-users] tcp_enqueue problem, using socket:
Date: Tue, 18 Mar 2008 18:11:27 +0100

Hi.

i'm using socket on lwip 130rc1.

i have this problem:

after some send operation, in tcp_enqueue, here:

  /* If total number of pbufs on the unsent/unacked queues exceeds the
   * configured maximum, return an error */
  queuelen = pcb->snd_queuelen;
  /* check for configured max queuelen and possible overflow */
  if ((queuelen >= TCP_SND_QUEUELEN) || (queuelen > TCP_SNDQUEUELEN_OVERFLOW)) {
    LWIP_DEBUGF(TCP_OUTPUT_DEBUG | 3, ("tcp_enqueue: too long queue %"U16_F" (max %"U16_F")\n", queuelen, TCP_SND_QUEUELEN));
    TCP_STATS_INC(tcp.memerr);                           
    pcb->flags |= TF_NAGLEMEMERR;
    return ERR_MEM;
  }

my code loop forever, in this piece of code, with queuelen = TCP_SND_QUEUELEN, without send any packet, incremeting err in tcp.memerr

i cannot recovery this situation?
my thread is blocked on send operation i suppose....


bye,
Piero

reply via email to

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