lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Closing socket in 1.4.1


From: Jonathan Dumaresq
Subject: Re: [lwip-users] Closing socket in 1.4.1
Date: Wed, 25 Sep 2013 11:26:17 -0400

HI,

address@hidden wrote:
> Hi,
> 
> I try to find a way to close an socket that have been error on it.
> The close seem to never return. 
> 
> Test case
> 
> 1- establishe an new connection with a server
> 2- send data
> 3- disconnect the cable when the data is sent
> 4- got the send timeout since I set the SO_SNDTMO
> 5- try to close the socket with close(sock); <---- never return.
> 
> I use this with FreeRTOS.
> 
> I got an call back function on the link status changed.
> 
> Is this a situation that I can do somethign or i'm stuck in the close
> function untili the link came up back again ? 
> 
> Regards
> 
> Jonathan

Is it normal that the close(sock), never return in case where the phy is not
linked anymore ?

Regards

Jonathan


> 
> 
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users





reply via email to

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