#! /usr/bin/perl # # $Id$ # Definition of 'My::Project::tcp_rto' for list.cgi.pl # Copyright (C) 2003 Jan Kratochvil # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; exactly version 2 of June 1991 is required # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA package project::tcp_rto::ListItem; require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; }; our $CVS_ID=q$Id$; use strict; use warnings; use My::Web; our @ListItem=( "name"=>"tcp_rto", "platform"=>"unixuser", "priority"=>7, "download-Linux kernel 2.2.17 patch"=>"linux-2.2.17-tcp_rto-1.diff", "download-Linux kernel 2.4.16 patch"=>"linux-2.4.16-tcp_rto-1.diff", "summary"=>"Linux kernel maximal TCP round-trip-time patch", "license"=>"GPL", "maintenance"=>"ready", "language"=>"C patch", "description"=><<"HERE",

This patch can solve your problems if you have network connection dropping too much packets. In standard case the Linux kernel will correctly increase our round-trip-time of connection slowing the transfer rate up to the unusable state.

After applying this patch you can set your maximal round-trip-time in file "/proc/sys/net/ipv4/tcp_rto_max", it is expressed in Hz units (100-per-second on x86 platform). You may need also to enlarge your maximal retry count in "/proc/sys/net/ipv4/tcp_retries2", otherwise your machine will reject the connection as it will have to retry the packets more than in sane states.

Please use this feature very carefully! You are violating RFC standards and you can get your network administrators to be very angry!

HERE ); 1;