Initial mod_perl-2.0 port.
[www.jankratochvil.net.git] / project / tcp_rto / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 64%
rename from project/tcp_rto/Index.html.pl
rename to project/tcp_rto/Index.pm
index 5c5dd9a..cfc32fa
@@ -1,8 +1,6 @@
-#! /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
@@ -25,17 +23,32 @@ 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';
+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
@@ -45,11 +58,13 @@ of connection slowing the transfer rate up to the unusable state.</p>
 &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
+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;