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

Comparing Coro/myhttpd/httpd.pl (file contents):
Revision 1.56 by root, Mon Dec 3 04:57:22 2001 UTC vs.
Revision 1.57 by root, Mon Dec 3 05:40:09 2001 UTC

450 } elsif (-f _ && -r _) { 450 } elsif (-f _ && -r _) {
451 -x _ and $self->err(403, "forbidden"); 451 -x _ and $self->err(403, "forbidden");
452 452
453 if (%{$conn{$self->{remote_id}}} > $::MAX_TRANSFERS_IP) { 453 if (%{$conn{$self->{remote_id}}} > $::MAX_TRANSFERS_IP) {
454 my $timeout = $::NOW + 10; 454 my $timeout = $::NOW + 10;
455 while (%{$conn{$self->{remote_id}}} >= $::MAX_TRANSFERS_IP) { 455 while (%{$conn{$self->{remote_id}}} > $::MAX_TRANSFERS_IP) {
456 if ($timeout < $::NOW) { 456 if ($timeout < $::NOW) {
457 $self->block($::BLOCKTIME, "too many connections"); 457 $self->block($::BLOCKTIME, "too many connections");
458 } else { 458 } else {
459 $httpevent->wait; 459 $httpevent->wait;
460 } 460 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines