From decaa992b71d5bf5a72692d12fd839b6e67dc55f Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Tue, 21 Apr 1998 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1998-04-21 --- ip/tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ip/tcp.c b/ip/tcp.c index a26ba76216442b75c3158d1455b63d8edb373040..0efe052729fdaa792652107818ad21735b40134b 100644 --- a/ip/tcp.c +++ b/ip/tcp.c @@ -37,7 +37,7 @@ enum MSL2 = 10, MSPTICK = 50, /* Milliseconds per timer tick */ DEF_MSS = 1024, /* Default mean segment */ - DEF_RTT = 150, /* Default round trip */ + DEF_RTT = 500, /* Default round trip */ TCP_LISTEN = 0, /* Listen connection */ TCP_CONNECT = 1, /* Outgoing connection */ @@ -583,6 +583,7 @@ inittcpctl(Conv *s) tcb->mss = tcp_mss; tcb->ssthresh = 65535; tcb->srtt = 0; + tcb->mdev = tcp_irtt << LOGDGAIN; tcb->timer.start = tcp_irtt / MSPTICK; tcb->timer.func = tcptimeout;