aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_timer.h
Commit message (Collapse)AuthorAgeFilesLines
* Reduce default TCP delayed ACK timeout to 40ms.Richard Scheffenegger2020-04-161-1/+1
| | | | | | | | | | | Reviewed by: kbowling, tuexen Approved by: tuexen (mentor) MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D23281 Notes: svn path=/head/; revision=360010
* White space cleanup -- remove trailing tab's or spacesRandall Stewart2020-02-121-1/+1
| | | | | | | | | from any line. Sponsored by: Netflix Inc. Notes: svn path=/head/; revision=357818
* vnet: virtualise more network stack sysctls.Bjoern A. Zeeb2020-01-081-1/+2
| | | | | | | | | | | | | | | | | Virtualise tcp_always_keepalive, TCP and UDP log_in_vain. All three are set in the netoptions startup script, which we would love to run for VNETs as well [1]. While virtualising the log_in_vain sysctls seems pointles at first for as long as the kernel message buffer is not virtualised, it at least allows an administrator to debug the base system or an individual jail if needed without turning the logging on for all jails running on a system. PR: 243193 [1] MFC after: 2 weeks Notes: svn path=/head/; revision=356527
* Add sysctl variable net.inet.tcp.rexmit_initial for setting RTO.InitialMichael Tuexen2019-03-231-0/+1
| | | | | | | | | | | used by TCP. Reviewed by: rrs@, 0mp@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D19355 Notes: svn path=/head/; revision=345458
* Reduce the TCP initial retransmission timeout from 3 seconds toMichael Tuexen2019-02-201-1/+1
| | | | | | | | | | | 1 second as allowed by RFC 6298. Reviewed by: kbowling@, Richard Scheffenegger Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D18941 Notes: svn path=/head/; revision=344368
* Use exponential backoff for retransmitting SYN segments as specifiedMichael Tuexen2019-02-201-1/+0
| | | | | | | | | | | in the TCP RFCs. Reviewed by: rrs@, Richard Scheffenegger Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D18974 Notes: svn path=/head/; revision=344367
* epoch(9): allow preemptible epochs to composeMatt Macy2018-07-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | - Add tracker argument to preemptible epochs - Inline epoch read path in kernel and tied modules - Change in_epoch to take an epoch as argument - Simplify tfb_tcp_do_segment to not take a ti_locked argument, there's no longer any benefit to dropping the pcbinfo lock and trying to do so just adds an error prone branchfest to these functions - Remove cases of same function recursion on the epoch as recursing is no longer free. - Remove the the TAILQ_ENTRY and epoch_section from struct thread as the tracker field is now stack or heap allocated as appropriate. Tested by: pho and Limelight Networks Reviewed by: kbowling at llnw dot com Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D16066 Notes: svn path=/head/; revision=335924
* This commit brings in a new refactored TCP stack called Rack.Randall Stewart2018-06-071-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rack includes the following features: - A different SACK processing scheme (the old sack structures are not used). - RACK (Recent acknowledgment) where counting dup-acks is no longer done instead time is used to knwo when to retransmit. (see the I-D) - TLP (Tail Loss Probe) where we will probe for tail-losses to attempt to try not to take a retransmit time-out. (see the I-D) - Burst mitigation using TCPHTPS - PRR (partial rate reduction) see the RFC. Once built into your kernel, you can select this stack by either socket option with the name of the stack is "rack" or by setting the global sysctl so the default is rack. Note that any connection that does not support SACK will be kicked back to the "default" base FreeBSD stack (currently known as "default"). To build this into your kernel you will need to enable in your kernel: makeoptions WITH_EXTRA_TCP_STACKS=1 options TCPHPTS Sponsored by: Netflix Inc. Differential Revision: https://reviews.freebsd.org/D15525 Notes: svn path=/head/; revision=334804
* Export tcp_always_keepalive for use by the Chelsio TOM module.John Baldwin2018-01-301-0/+1
| | | | | | | | | | | | | | This used to work by accident with ld.bfd even though always_keepalive was marked as static. LLD honors static more correctly, so export this variable properly (including moving it into the tcp_* namespace). Reviewed by: bz, emaste MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D14129 Notes: svn path=/head/; revision=328608
* sys: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326023
* Declare pmtud_blackhole global variables in tcp_timer.h, so thatGleb Smirnoff2017-10-061-0/+7
| | | | | | | alternative TCP stacks can legally use them. Notes: svn path=/head/; revision=324374
* Hide struct inpcb, struct tcpcb from the userland.Gleb Smirnoff2017-03-211-2/+0
| | | | | | | | | | | | | | | | | | | | | | | This is a painful change, but it is needed. On the one hand, we avoid modifying them, and this slows down some ideas, on the other hand we still eventually modify them and tools like netstat(1) never work on next version of FreeBSD. We maintain a ton of spares in them, and we already got some ifdef hell at the end of tcpcb. Details: - Hide struct inpcb, struct tcpcb under _KERNEL || _WANT_FOO. - Make struct xinpcb, struct xtcpcb pure API structures, not including kernel structures inpcb and tcpcb inside. Export into these structures the fields from inpcb and tcpcb that are known to be used, and put there a ton of spare space. - Make kernel and userland utilities compilable after these changes. - Bump __FreeBSD_version. Reviewed by: rrs, gnn Differential Revision: D10018 Notes: svn path=/head/; revision=315662
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Don't zero out srtt after excess retransmitsRyan Stone2017-02-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | If the TCP stack has retransmitted more than 1/4 of the total number of retransmits before a connection drop, it decides that its current RTT estimate is hopelessly out of date and decides to recalculate it from scratch starting with the next ACK. Unfortunately, it implements this by zeroing out the current RTT estimate. Drop this hack entirely, as it makes it significantly more difficult to debug connection issues. Instead check for excessive retransmits at the point where srtt is updated from an ACK being received. If we've exceeded 1/4 of the maximum retransmits, discard the previous srtt estimate and replace it with the latest rtt measurement. Differential Revision: https://reviews.freebsd.org/D9519 Reviewed by: gnn Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313646
* This cleans up the timer code in TCP and also makes it so we do notRandall Stewart2016-08-161-0/+3
| | | | | | | | | take the INFO lock *unless* we are really going to delete the TCB. Differential Revision: D7136 Notes: svn path=/head/; revision=304218
* This cleans up the timers code in TCP to start using the newRandall Stewart2016-04-281-6/+2
| | | | | | | | | | | | async_drain functionality. This as been tested in NF as well as by Verisign. Still to do in here is to remove all the old flags. They are currently left being maintained but probably are no longer needed. Sponsored by: Netflix Inc. Differential Revision: http://reviews.freebsd.org/D5924 Notes: svn path=/head/; revision=298743
* Persist timers TCPTV_PERSMIN and TCPTV_PERSMAX are hardcoded with 5 seconds andHiren Panchasara2016-01-261-1/+3
| | | | | | | | | | | | | | 60 seconds, respectively. Turn them into sysctls that can be tuned live. The default values of 5 seconds and 60 seconds have been retained. Submitted by: Jason Wolfe (j at nitrology dot com) Reviewed by: gnn, rrs, hiren, bz MFC after: 1 week Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D5024 Notes: svn path=/head/; revision=294840
* Put r284245 back in place: If at first this fix was seen as a temporaryJulien Charbon2015-08-301-0/+6
| | | | | | | | | | | | | | | | | workaround for a callout(9) issue, it turns out it is instead the right way to use callout in mpsafe mode without using callout_drain(). r284245 commit message: Fix a callout race condition introduced in TCP timers callouts with r281599. In TCP timer context, it is not enough to check callout_stop() return value to decide if a callout is still running or not, previous callout_reset() return values have also to be checked. Differential Revision: https://reviews.freebsd.org/D2763 Notes: svn path=/head/; revision=287304
* Revert r284245: "Fix a callout race condition introduced in TCPJulien Charbon2015-08-241-6/+0
| | | | | | | | | | | | | | | | | | timers callouts with r281599." r281599 fixed a TCP timer race condition, but due a callout(9) bug it also introduced another race condition workaround-ed with r284245. The callout(9) bug being fixed with r286880, we can now revert the workaround (r284245). Differential Revision: https://reviews.freebsd.org/D2079 (Initial change) Differential Revision: https://reviews.freebsd.org/D2763 (Workaround) Differential Revision: https://reviews.freebsd.org/D3078 (Fix) Sponsored by: Verisign, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=287101
* Remove unused TCPTV_SRTTDFLT. We initialize srtt with TCPTV_SRTTBASE when weHiren Panchasara2015-08-121-1/+0
| | | | | | | | | | don't have any rtt estimate. Differential Revision: D3334 Sponsored by: Limelight Networks Notes: svn path=/head/; revision=286669
* Fix a callout race condition introduced in TCP timers callouts with r281599.Julien Charbon2015-06-101-0/+6
| | | | | | | | | | | | | | | In TCP timer context, it is not enough to check callout_stop() return value to decide if a callout is still running or not, previous callout_reset() return values have also to be checked. Differential Revision: https://reviews.freebsd.org/D2763 Reviewed by: hiren Approved by: hiren MFC after: 1 day Sponsored by: Verisign, Inc. Notes: svn path=/head/; revision=284245
* Fix an old and well-documented use-after-free race condition inJulien Charbon2015-04-161-5/+19
| | | | | | | | | | | | | | | TCP timers: - Add a reference from tcpcb to its inpcb - Defer tcpcb deletion until TCP timers have finished Differential Revision: https://reviews.freebsd.org/D2079 Submitted by: jch, Marc De La Gueronniere <mdelagueronniere@verisign.com> Reviewed by: imp, rrs, adrian, jhb, bz Approved by: jhb Sponsored by: Verisign, Inc. Notes: svn path=/head/; revision=281599
* Fix a race condition in TCP timewait between tcp_tw_2msl_reuse() andJulien Charbon2014-10-301-2/+1
| | | | | | | | | | | | | | | | | tcp_tw_2msl_scan(). This race condition drives unplanned timewait timeout cancellation. Also simplify implementation by holding inpcb reference and removing tcptw reference counting. Differential Revision: https://reviews.freebsd.org/D826 Submitted by: Marc De la Gueronniere <mdelagueronniere@verisign.com> Submitted by: jch Reviewed By: jhb (mentor), adrian, rwatson Sponsored by: Verisign, Inc. MFC after: 2 weeks X-MFC-With: r264321 Notes: svn path=/head/; revision=273850
* Currently, the TCP slow timer can starve TCP input processing while itJohn Baldwin2014-04-101-1/+2
| | | | | | | | | | | | | | | | | | walks the list of connections in TIME_WAIT closing expired connections due to contention on the global TCP pcbinfo lock. To remediate, introduce a new global lock to protect the list of connections in TIME_WAIT. Only acquire the TCP pcbinfo lock when closing an expired connection. This limits the window of time when TCP input processing is stopped to the amount of time needed to close a single connection. Submitted by: Julien Charbon <jcharbon@verisign.com> Reviewed by: rwatson, rrs, adrian MFC after: 2 months Notes: svn path=/head/; revision=264321
* Add DELACK to list of timers.Andre Oppermann2012-11-271-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=243621
* Define the delayed ACK timeout value directly as hz/10 instead ofAndre Oppermann2012-10-291-1/+1
| | | | | | | | | obfuscating it by going through PR_FASTHZ. No functional change. MFC after: 2 weeks Notes: svn path=/head/; revision=242308
* For retransmits of SYN|ACK from the syncache use the slightly moreAndre Oppermann2012-10-281-0/+1
| | | | | | | | | | aggressive special tcp_syn_backoff[] retransmit schedule instead of the normal tcp_backoff[] schedule for established connections. MFC after: 2 weeks Notes: svn path=/head/; revision=242261
* Add new socket options: TCP_KEEPINIT, TCP_KEEPIDLE, TCP_KEEPINTVL andGleb Smirnoff2012-02-051-1/+7
| | | | | | | | | | TCP_KEEPCNT, that allow to control initial timeout, idle time, idle re-send interval and idle send count on a per-socket basis. Reviewed by: andre, bz, lstewart Notes: svn path=/head/; revision=231025
* Remove the TCP inflight bandwidth limiter as announced in r211315Andre Oppermann2010-09-161-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | to give way for the pluggable congestion control framework. It is the task of the congestion control algorithm to set the congestion window and amount of inflight data without external interference. In 'struct tcpcb' the variables previously used by the inflight limiter are renamed to spares to keep the ABI intact and to have some more space for future extensions. In 'struct tcp_info' the variable 'tcpi_snd_bwnd' is not removed to preserve the ABI. It is always set to 0. In siftr.c in 'struct pkt_node' the variable 'snd_bwnd' is not removed to preserve the ABI. It is always set to 0. These unused variable in the various structures may be reused in the future or garbage collected before the next release or at some other point when an ABI change happens anyway for other reasons. No MFC is planned. The inflight bandwidth limiter stays disabled by default in the other branches but remains available. Notes: svn path=/head/; revision=212765
* Add the ability to see TCP timers via netstat -x. This can be a usefulMike Silbersack2009-09-161-0/+4
| | | | | | | | | | | | feature when you have a seemingly stuck socket and want to figure out why it has not been closed yet. No plans to MFC this, as it changes the netstat sysctl ABI. Reviewed by: andre, rwatson, Eric Van Gyzen Notes: svn path=/head/; revision=197244
* Two changes:Mike Silbersack2007-09-241-0/+7
| | | | | | | | | | | | | | | | | | | | | - Reintegrate the ANSI C function declaration change from tcp_timer.c rev 1.92 - Reorganize the tcpcb structure so that it has a single pointer to the "tcp_timer" structure which contains all of the tcp timer callouts. This change means that when the single tcp timer change is reintegrated, tcpcb will not change in size, and therefore the ABI between netstat and the kernel will not change. Neither of these changes should have any functional impact. Reviewed by: bmah, rrs Approved by: re (bmah) Notes: svn path=/head/; revision=172309
* Back out tcp_timer.c:1.93 and associated changes that reimplemented the manyRobert Watson2007-09-071-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | TCP timers as a single timer, but retain the API changes necessary to reintroduce this change. This will back out the source of at least two reported problems: lock leaks in certain timer edge cases, and TCP timers continuing to fire after a connection has closed (a bug previously fixed and then reintroduced with the timer rewrite). In a follow-up commit, some minor restylings and comment changes performed after the TCP timer rewrite will be reapplied, and a further change to allow the TCP timer rewrite to be added back without disturbing the ABI. The new design is believed to be a good thing, but the outstanding issues are leading to significant stability/correctness problems that are holding up 7.0. This patch was generated by silby, but is being committed by proxy due to poor network connectivity for silby this week. Approved by: re (kensmith) Submitted by: silby Tested by: rwatson, kris Problems reported by: peter, kris, others Notes: svn path=/head/; revision=172074
* Change TCPTV_MIN to be independent of HZ. While it was documented toPeter Wemm2007-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be in ticks "for algorithm stability" when originally committed, it turns out that it has a significant impact in timing out connections. When we changed HZ from 100 to 1000, this had a big effect on reducing the time before dropping connections. To demonstrate, boot with kern.hz=100. ssh to a box on local ethernet and establish a reliable round-trip-time (ie: type a few commands). Then unplug the ethernet and press a key. Time how long it takes to drop the connection. The old behavior (with hz=100) caused the connection to typically drop between 90 and 110 seconds of getting no response. Now boot with kern.hz=1000 (default). The same test causes the ssh session to drop after just 9-10 seconds. This is a big deal on a wifi connection. With kern.hz=1000, change sysctl net.inet.tcp.rexmit_min from 3 to 30. Note how it behaves the same as when HZ was 100. Also, note that when booting with hz=100, net.inet.tcp.rexmit_min *used* to be 30. This commit changes TCPTV_MIN to be scaled with hz. rexmit_min should always be about 30. If you set hz to Really Slow(TM), there is a safety feature to prevent a value of 0 being used. This may be revised in the future, but for the time being, it restores the old, pre-hz=1000 behavior, which is significantly less annoying. As a workaround, to avoid rebooting or rebuilding a kernel, you can run "sysctl net.inet.tcp.rexmit_min=30" and add "net.inet.tcp.rexmit_min=30" to /etc/sysctl.conf. This is safe to run from 6.0 onwards. Approved by: re (rwatson) Reviewed by: andre, silby Notes: svn path=/head/; revision=171677
* Remove now unused stuff forgotten in the previous commit.Andre Oppermann2007-05-161-4/+0
| | | | Notes: svn path=/head/; revision=169613
* Move TIME_WAIT related functions and timer handling from filesAndre Oppermann2007-05-161-2/+2
| | | | | | | | | | | | | | | | | | | other than repo copied tcp_subr.c into tcp_timewait.c#1.284: tcp_input.c#1.350 tcp_timewait() -> tcp_twcheck() tcp_timer.c#1.92 tcp_timer_2msl_reset() -> tcp_tw_2msl_reset() tcp_timer.c#1.92 tcp_timer_2msl_stop() -> tcp_tw_2msl_stop() tcp_timer.c#1.92 tcp_timer_2msl_tw() -> tcp_tw_2msl_scan() This is a mechanical move with appropriate renames and making them static if used only locally. The tcp_tw_2msl_scan() cleanup function is still run from the tcp_slowtimo() in tcp_timer.c. Notes: svn path=/head/; revision=169608
* Make "struct tcp_timer" visible only to the kernel, and unbreak world.Ruslan Ermilov2007-04-111-12/+13
| | | | Notes: svn path=/head/; revision=168621
* Change the TCP timer system from using the callout system five timesAndre Oppermann2007-04-111-5/+16
| | | | | | | | | | | | | | | | | | | directly to a merged model where only one callout, the next to fire, is registered. Instead of callout_reset(9) and callout_stop(9) the new function tcp_timer_activate() is used which then internally manages the callout. The single new callout is a mutex callout on inpcb simplifying the locking a bit. tcp_timer() is the called function which handles all race conditions in one place and then dispatches the individual timer functions. Reviewed by: rwatson (earlier version) Notes: svn path=/head/; revision=168615
* Reap FIN_WAIT_2 connections marked SOCANTRCVMORE faster. This mitigateMohan Srinivasan2007-02-261-0/+5
| | | | | | | | | | | potential issues where the peer does not close, potentially leaving thousands of connections in FIN_WAIT_2. This is controlled by a new sysctl fast_finwait2_recycle, which is disabled by default. Reviewed by: gnn, silby. Notes: svn path=/head/; revision=167036
* if min is greater than max, prefer max over min... I managed to get aJohn-Mark Gurney2006-09-251-1/+1
| | | | | | | | | retransmit timer that was going to take 19 days to trigger... Reviewed by: silby Notes: svn path=/head/; revision=162612
* Back when we had T/TCP support, we used to apply differentRuslan Ermilov2006-09-071-1/+1
| | | | | | | | | | | | | | timeouts for TCP and T/TCP connections in the TIME_WAIT state, and we had two separate timed wait queues for them. Now that is has gone, the timeout is always 2*MSL again, and there is no reason to keep two queues (the first was unused anyway!). Also, reimplement the remaining queue using a TAILQ (it was technically impossible before, with two queues). Notes: svn path=/head/; revision=162111
* Fixes an edge case bug in timewait handling where ticks rolling over causingMohan Srinivasan2006-08-111-1/+1
| | | | | | | | the timewait expiry to be exactly 0 corrupts the timewait queues (and that entry). Reviewed by: silby Notes: svn path=/head/; revision=161226
* Have TCP Inflight disable itself if the RTT is below a certainAndre Oppermann2006-02-161-0/+3
| | | | | | | | | | | | | | | | | threshold. Inflight doesn't make sense on a LAN as it has trouble figuring out the maximal bandwidth because of the coarse tick granularity. The sysctl net.inet.tcp.inflight.rttthresh specifies the threshold in milliseconds below which inflight will disengage. It defaults to 10ms. Tested by: Joao Barros <joao.barros-at-gmail.com>, Rich Murphey <rich-at-whiteoaklabs.com> Sponsored by: TCP/IP Optimization Fundraise 2005 Notes: svn path=/head/; revision=155767
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139823
* White space cleanup for netinet before branch:Robert Watson2004-08-161-1/+1
| | | | | | | | | | | | | | - Trailing tab/space cleanup - Remove spurious spaces between or before tabs This change avoids touching files that Andre likely has in his working set for PFIL hooks changes for IPFW/DUMMYNET. Approved by: re (scottl) Submitted by: Xin LI <delphij@frontfree.net> Notes: svn path=/head/; revision=133874
* Remove advertising clause from University of California Regent'sWarner Losh2004-04-071-4/+0
| | | | | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson Notes: svn path=/head/; revision=128019
* Remove a panic(); if the zone allocator can't provide more timewaitJonathan Lemon2003-03-081-1/+7
| | | | | | | | | | structures, reuse the oldest one. Also move the expiry timer from a per-structure callout to the tcp slow timer. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=112009
* Add a TCP TIMEWAIT state which uses less space than a fullblown TCPJonathan Lemon2003-02-191-0/+1
| | | | | | | | | | | control block. Allow the socket and tcpcb structures to be freed earlier than inpcb. Update code to understand an inp w/o a socket. Reviewed by: hsu, silby, jayanth Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=111145
* make the strings for tcptimers, tanames and prurequests const to silenceAlfred Perlstein2002-08-161-1/+1
| | | | | | | warnings. Notes: svn path=/head/; revision=101975
* Introduce two new sysctl's:Matthew Dillon2002-07-181-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | net.inet.tcp.rexmit_min (default 3 ticks equiv) This sysctl is the retransmit timer RTO minimum, specified in milliseconds. This value is designed for algorithmic stability only. net.inet.tcp.rexmit_slop (default 200ms) This sysctl is the retransmit timer RTO slop which is added to every retransmit timeout and is designed to handle protocol stack overheads and delayed ack issues. Note that the *original* code applied a 1-second RTO minimum but never applied real slop to the RTO calculation, so any RTO calculation over one second would have no slop and thus not account for protocol stack overheads (TCP timestamps are not a measure of protocol turnaround!). Essentially, the original code made the RTO calculation almost completely irrelevant. Please note that the 200ms slop is debateable. This commit is not meant to be a line in the sand, and if the community winds up deciding that increasing it is the correct solution then it's easy to do. Note that larger values will destroy performance on lossy networks while smaller values may result in a greater number of unnecessary retransmits. Notes: svn path=/head/; revision=100335
* I don't know how the minimum retransmit timeout managed to get set toMatthew Dillon2002-07-171-1/+7
| | | | | | | | | | | one second but it badly breaks throughput on networks with minor packet loss. Complaints by: at least two people tracked down to this. MFC after: 3 days Notes: svn path=/head/; revision=100270