ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/myhttpd/err.pl
(Generate patch)

Comparing Coro/myhttpd/err.pl (file contents):
Revision 1.3 by root, Wed Nov 28 03:40:15 2001 UTC vs.
Revision 1.4 by root, Fri Nov 30 06:20:43 2001 UTC

91EOF 91EOF
92} 92}
93 93
94sub conn::err_blocked { 94sub conn::err_blocked {
95 my $self = shift; 95 my $self = shift;
96 my $ip = $self->{remote_id}; 96 my $id = $self->{remote_id};
97 my $ctime = $HTTP_NOW; 97 my $ctime = $HTTP_NOW;
98 my $etime = time2str $conn::blocked{$ip} = $::NOW + $::BLOCKTIME; 98 my $etime = time2str $conn::blocked{$ip} = $::NOW + $::BLOCKTIME;
99 99
100 Coro::Event::do_timer(after => 20*rand); 100 Coro::Event::do_timer(after => 20*rand);
101 101
112<head> 112<head>
113<title>Too many connections</title> 113<title>Too many connections</title>
114</head> 114</head>
115<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000080" alink="#ff0000"> 115<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000080" alink="#ff0000">
116 116
117<p>You have been blocked because you opened too many connections. You 117<p>You have been blocked because you didn't behave. You may retry at</p>
118may retry at</p>
119 118
120 <p><blockquote>$etime.</blockquote></p> 119 <p><blockquote>$etime.</blockquote></p>
121 120
122<p>For your reference, the current time and your identifier is:</p> 121<p>For your reference, the current time and your identifier is:</p>
123 122
124 <p><blockquote>$ctime | $id</blockquote></p> 123 <p><blockquote>$ctime | $id</blockquote></p>
125 124
126<p>Until then, each new access will renew the block. You might want to have a 125<p>Until then, each access will renew the block. This should give
127look at the <a href="http://www.goof.com/pcg/marc/animefaq.html#blocked">FAQ</a>.</p> 126you ample time to look at the <a href="http://www.goof.com/pcg/marc/animefaq.html#blocked">FAQ</a>.</p>
128 127
129</body></html> 128</body></html>
130EOF 129EOF
131} 130}
132 131

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines