diff options
| author | fukachan <fukachan> | 2003-06-29 05:48:11 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-06-29 05:48:11 +0000 |
| commit | c430e5927022c32d3ecdba41226d87599e1985be (patch) | |
| tree | dd0ef6b331b4d255cb308e01785b92ea8aa02b73 /fml/lib/FML/Command.pm | |
| parent | ce5c220db7788bcddc8c3a104641a2b42f236ba9 (diff) | |
| download | fml8-c430e5927022c32d3ecdba41226d87599e1985be.tar.gz fml8-c430e5927022c32d3ecdba41226d87599e1985be.tar.bz2 fml8-c430e5927022c32d3ecdba41226d87599e1985be.zip | |
check the number of request in get commands.
Diffstat (limited to 'fml/lib/FML/Command.pm')
| -rw-r--r-- | fml/lib/FML/Command.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fml/lib/FML/Command.pm b/fml/lib/FML/Command.pm index b2fd14a5..2b7eb27e 100644 --- a/fml/lib/FML/Command.pm +++ b/fml/lib/FML/Command.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Command.pm,v 1.37 2003/03/16 10:47:22 fukachan Exp $ +# $FML: Command.pm,v 1.38 2003/03/18 10:42:40 fukachan Exp $ # # XXX @@ -193,6 +193,11 @@ sub AUTOLOAD $command->auth($curproc, $command_args); } + if ($command->can('check_limit')) { + my $n = $command->check_limit($curproc, $command_args); + if ($n) { croak("exceed limit");} + } + # this command needs lock (currently giant lock) ? if ($command->can('need_lock')) { $need_lock = $command->need_lock($mode); |
