Allow shorter UIP_CONF_WAIT_TIMEOUT for more aggressive power saving modes.

This commit is contained in:
dak664 2010-12-24 00:39:04 +00:00
parent 8b5577eca2
commit 3c3cd868cd

View file

@ -58,7 +58,7 @@
* *
* This file is part of the uIP TCP/IP stack. * This file is part of the uIP TCP/IP stack.
* *
* $Id: uipopt.h,v 1.13 2010/12/07 23:33:17 adamdunkels Exp $ * $Id: uipopt.h,v 1.14 2010/12/24 00:39:04 dak664 Exp $
* *
*/ */
@ -407,11 +407,13 @@
/** /**
* How long a connection should stay in the TIME_WAIT state. * How long a connection should stay in the TIME_WAIT state.
* *
* This configuration option has no real implication, and it should be * This can be reduced for faster entry into power saving modes.
* left untouched.
*/ */
#ifndef UIP_CONF_WAIT_TIMEOUT
#define UIP_TIME_WAIT_TIMEOUT 120 #define UIP_TIME_WAIT_TIMEOUT 120
#else
#define UIP_TIME_WAIT_TIMEOUT UIP_CONF_WAIT_TIMEOUT
#endif
/** @} */ /** @} */
/*------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------*/