Changeset 710
- Timestamp:
- 10/12/07 12:12:04 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
lib/Perlbal.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGES
r708 r710 1 -- SHUTDOWN GRACEFUL [timeout] - now accepts optional timeout 2 parameter to force shutdown after that period in seconds 3 1 4 -- make SSL non-blocking 2 5 -
trunk/lib/Perlbal.pm
r704 r710 385 385 386 386 sub MANAGE_shutdown { 387 my $mc = shift->parse(qr/^shutdown( graceful)?$/);387 my $mc = shift->parse(qr/^shutdown(\s?graceful)?\s?(\d+)?$/); 388 388 389 389 # immediate shutdown … … 418 418 return 0; # end the event loop and thus we exit perlbal 419 419 }); 420 421 # If requested, register a callback to kill the perlbal process after a specified number of seconds 422 if (my $timeout = $mc->arg(2)) { 423 Perlbal::Socket::register_callback($timeout, sub { exit(0); }); 424 } 420 425 421 426 # so they know something happened
