Decrease TCP initial retransmit time

This commit is contained in:
liu zhifu
2020-03-13 12:56:34 +08:00
parent 9b9d126b84
commit 850fc7c710
+2 -2
View File
@@ -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;