-#! /usr/bin/perl
-#
# $Id$
# Main page of 'My::Project::tcp_rto'
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Copyright (C) 2003-2005 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
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';
+Wuse 'project::Lib';
-My::Project->init_project(
- "__PACKAGE__"=>__PACKAGE__,
- "ListItem"=>\@project::tcp_rto::ListItem::ListItem,
+our @ListItem=(
+ "name"=>"tcp_rto",
+ "platform"=>"unixuser",
+ "trivia"=>1,
+ "priority"=>330,
+ "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",
+<p>Solve your problems with network connection dropping too much of your
+packets. It forces Linux kernel to insist repeating the packages to prevent
+slowdown of the TCP connection up to its unusable state.</p>
+HERE
);
+sub handler
+{
+project::Lib->init();
+
print <<"HERE";
<p>This patch can solve your problems if you have network connection dropping too much
"<b>/proc/sys/net/ipv4/tcp_rto_max</b>", 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 "<b>/proc/sys/net/ipv4/tcp_retries2</b>",
-otherwise <u>your</u> machine will reject the connection as it will have to retry
+otherwise <b>your</b> 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>
+<p style="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!</p>
HERE
My::Web->footer();
+}
+1;