diff options
author | smh <smh@FreeBSD.org> | 2017-04-24 11:34:02 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2017-04-24 11:34:02 +0000 |
commit | 45105004da0b6dd9f5da6cee0872480d6bf94446 (patch) | |
tree | e240f53621d2090330fbe868feaef2d3908fbae0 /sys/netinet/tcp_output.c | |
parent | 1b91cdf6c751258b0a2f9f99147e054bb7c16af0 (diff) | |
download | FreeBSD-src-45105004da0b6dd9f5da6cee0872480d6bf94446.zip FreeBSD-src-45105004da0b6dd9f5da6cee0872480d6bf94446.tar.gz |
MFC r316676:
Use estimated RTT for receive buffer auto resizing instead of timestamps
Relnotes: Yes
Sponsored by: Multiplay
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 2b1e46e..60874f5 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -821,11 +821,13 @@ send: to.to_tsval = tcp_ts_getticks() + tp->ts_offset; to.to_tsecr = tp->ts_recent; to.to_flags |= TOF_TS; - /* Set receive buffer autosizing timestamp. */ - if (tp->rfbuf_ts == 0 && - (so->so_rcv.sb_flags & SB_AUTOSIZE)) - tp->rfbuf_ts = tcp_ts_getticks(); } + + /* Set receive buffer autosizing timestamp. */ + if (tp->rfbuf_ts == 0 && + (so->so_rcv.sb_flags & SB_AUTOSIZE)) + tp->rfbuf_ts = tcp_ts_getticks(); + /* Selective ACK's. */ if (tp->t_flags & TF_SACK_PERMIT) { if (flags & TH_SYN) |