[Top][All Lists]

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

[lwip-users] netconn_new() hangs when link is down

From: Bastiaan van Kesteren
Subject: [lwip-users] netconn_new() hangs when link is down
Date: Tue, 17 Feb 2015 13:18:34 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


Using LwIP 1.4.1, FreeRTOS 6.1.0. Everything working fine.

The problems arrise when the network-link goes down (unplugging the cable). I got some LwIP 'client' applications running, all using the netconn api. Once the link has been up and goes down, the very next call to one of these 'client' applications causes it to hang;

netconn_new()         ( = netconn_new_with_proto_and_callback() )
   TCPIP_APIMSG()    ( = tcpip_apimsg() )

The sys_arch_sem_wait() never returns, the semaphore is never signalled. Plugging the network cable back in doesn't resolve the issue, a restart is required. I'd much rather have some kind of ERR_CONN return value somewhere....

Anyone with idea's about whats going on?


reply via email to

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