lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Infinite hang in tcp_slowtmr()


From: Stephen Cowell
Subject: [lwip-users] Infinite hang in tcp_slowtmr()
Date: Mon, 12 Oct 2015 14:51:14 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Using 1.4.1, no OS, in a ftpd application.
Atmel SAM4E, based on THIRDPARTY_LWIP_RAW_BASIC_HTTP
example, ASF 3.25.

I find that I sometimes get an infinite loop when stepping to
pcb->next... if it is not a new pcb but the same old one, the
system hangs.  In order to get out of this I put the following
two lines of 'if' code at the end:

<>
    } else {
      prev = pcb;
      pcb = pcb->next;
      if (prev == pcb)
        pcb->next = NULL;// hack to escape infinite loop slc degub
    }
  }
}
</>

In talking on other forums I understand that this problem is
related to I/O stress.  Has this issue been dealt with before?
Is there a better solution?
__
Steve




reply via email to

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