From: asterix Date: Wed, 11 Jan 2012 14:40:12 +0000 (+0000) Subject: Revert "Fix lwip implementation of retransmission timers." X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=69189320a33089d77c2623698c583a7a0fc48702;p=bertos.git Revert "Fix lwip implementation of retransmission timers." This reverts commit 490e1a81582206997ed93f7530e55124581df1be. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5236 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/net/lwip/src/arch/sys_arch.c b/bertos/net/lwip/src/arch/sys_arch.c index adbb8fbc..0d1ade5c 100644 --- a/bertos/net/lwip/src/arch/sys_arch.c +++ b/bertos/net/lwip/src/arch/sys_arch.c @@ -317,6 +317,15 @@ static struct sys_timeouts lwip_system_timeouts; // Default timeouts list for lw struct sys_timeouts *sys_arch_timeouts(void) { + ThreadNode *thread_node; + struct Process *curr_pid = proc_current(); + + FOREACH_NODE(thread_node, &used_thread) + { + if (thread_node->pid == curr_pid) + return &(thread_node->timeout); + } + return &lwip_system_timeouts; }