git: DragonFly_RELEASE_5_4 kernel - Change tcp keepalive options from ms to seconds (DISRUPTIVE) (2)

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jul 6 17:51:47 PDT 2019


commit cb7663d3b0df96ce43cb6fe3b677a3ecdc815c80
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jun 25 21:48:20 2019 -0700

    kernel - Change tcp keepalive options from ms to seconds (DISRUPTIVE) (2)
    
    * Refactor the code slightly to adopt the same limits and behavior
      as linux.  Instead of capping out we return EINVAL on any out-of-
      bound value.
    
    * Also note that my history was wrong.  Sephe actually implemented
      these options, not me, and it was in 2011 (8 years ago, not 15+).
      So much for my vague memory!  At the time other operating used wildly
      different metrics, and we chose to use milliseconds.  But in the
      intervening years it looks like the main systems have adopted a
      1-second interval.
    
      In changing our parameters to match, we avoid a lot of pain when
      porting third party applications that use it, particularly chrome.
      But also a few others.
    
      If we need sub-second parameters in the future we will implement
      new option keywords for it.

Summary of changes:
 sys/netinet/tcp_usrreq.c | 40 ++++++++++++++++------------------------
 1 file changed, 16 insertions(+), 24 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cb7663d3b0df96ce43cb6fe3b677a3ecdc815c80


-- 
DragonFly BSD source repository


More information about the Commits mailing list