[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] idle connection timeout
From: |
mobin.seven |
Subject: |
[lwip-users] idle connection timeout |
Date: |
Mon, 15 Sep 2014 03:11:32 -0700 (MST) |
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] idle connection timeout,
mobin.seven <=