lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] idle connection timeout


From: Ari Suutari
Subject: Re: [lwip-users] idle connection timeout
Date: Mon, 15 Sep 2014 13:31:58 +0300
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Hi,

I think that your timeout type should be "struct timeval" instead of "int".

    Ari S.

On 15.9.2014 13:11, mobin.seven wrote:
Hi
I want to close idle connections on server side with 15s timeout.
Is  SO_RCVTIMEO what I need?
I use this line:
int timeout = 15000;
lwip_setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout));
it always returns -1.
How can I do this(closing idle connection)?
thanks



--
View this message in context: 
http://lwip.100.n7.nabble.com/idle-connection-timeout-tp23252.html
Sent from the lwip-users mailing list archive at Nabble.com.

_______________________________________________
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]