modperl branch collapsed back to MAIN trunk, man!
[www.jankratochvil.net.git] / project / tcp_rto / Index.html.pl
diff --git a/project/tcp_rto/Index.html.pl b/project/tcp_rto/Index.html.pl
new file mode 100755 (executable)
index 0000000..5c5dd9a
--- /dev/null
@@ -0,0 +1,55 @@
+#! /usr/bin/perl
+# 
+# $Id$
+# Main page of 'My::Project::tcp_rto'
+# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# 
+# 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::Index;
+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;
+
+BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
+use My::Web;
+Wuse 'My::Project';
+Wuse 'project::tcp_rto::ListItem';
+
+
+My::Project->init_project(
+               "__PACKAGE__"=>__PACKAGE__,
+               "ListItem"=>\@project::tcp_rto::ListItem::ListItem,
+               );
+
+
+print <<"HERE";
+<p>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.</p>
+<p>After applying this patch you can set your maximal round-trip-time in file
+&quot;<b>/proc/sys/net/ipv4/tcp_rto_max</b>&quot;, it is expressed in <tt>Hz</tt>
+units (<tt>100-per-second</tt> on <i>x86</i> platform). You may need also to enlarge
+your maximal retry count in &quot;<b>/proc/sys/net/ipv4/tcp_retries2</b>&quot;,
+otherwise <u>your</u> machine will reject the connection as it will have to retry
+the packets more than in sane states.</p>
+<p><font color="red">Please use this feature very carefully! You are violating
+<tt>RFC</tt> standards and you can get your network administrators to be very angry!</font></p>
+HERE
+
+
+My::Web->footer();