From 850fc7c7103706a2124d144d7ad553bb98beaaa6 Mon Sep 17 00:00:00 2001 From: liu zhifu Date: Fri, 13 Mar 2020 12:56:34 +0800 Subject: [PATCH] Decrease TCP initial retransmit time --- src/core/tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/tcp.c b/src/core/tcp.c index 5c3b944e..ae7a1214 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -1715,8 +1715,8 @@ tcp_alloc(u8_t prio) /* As initial send MSS, we use TCP_MSS but limit it to 536. The send MSS is updated when an MSS option is received. */ pcb->mss = INITIAL_MSS; - pcb->rto = 3000 / TCP_SLOW_INTERVAL; - pcb->sv = 3000 / TCP_SLOW_INTERVAL; + pcb->rto = 500 / TCP_SLOW_INTERVAL; + pcb->sv = 500 / TCP_SLOW_INTERVAL; pcb->rtime = -1; pcb->cwnd = 1; pcb->tmr = tcp_ticks;