mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
tcp: turn on TCP hostcache for socket buffer sizes
The code has been there since introduction of the TCP hostcache
in 97d8d152c2 in 2003, but was turned off.
Reviewed by: tuexen, cc
Differential Revision: https://reviews.freebsd.org/D59452
This commit is contained in:
1 parent
f8f05fe48d
commit
587c6c1215
1 file changed
+2
-2
@@ -2515,8 +2515,8 @@ tcp_discardcb(struct tcpcb *tp)
|
||||
metrics.hc_rtt = tp->t_srtt;
|
||||
metrics.hc_rttvar = tp->t_rttvar;
|
||||
metrics.hc_cwnd = tp->snd_cwnd;
|
||||
metrics.hc_sendpipe = 0;
|
||||
metrics.hc_recvpipe = 0;
|
||||
metrics.hc_sendpipe = so->so_snd.sb_hiwat;
|
||||
metrics.hc_recvpipe = so->so_rcv.sb_hiwat;
|
||||
|
||||
tcp_hc_update(&inp->inp_inc, &metrics);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user