ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/bin/aemp
(Generate patch)

Comparing AnyEvent-MP/bin/aemp (file contents):
Revision 1.53 by root, Sat Mar 3 19:43:41 2012 UTC vs.
Revision 1.54 by root, Sat Mar 3 20:35:10 2012 UTC

57 aemp delprofile <name> # eradicate the named profile 57 aemp delprofile <name> # eradicate the named profile
58 aemp showprofile <name> # display given profile 58 aemp showprofile <name> # display given profile
59 aemp showconfig <name> ... # display effective config 59 aemp showconfig <name> ... # display effective config
60 60
61 # node configuration: low-level protocol 61 # node configuration: low-level protocol
62 aemp [set|del]secure <boolean>
62 aemp [set|del]monitor_timeout <seconds> 63 aemp [set|del]monitor_timeout <seconds>
63 aemp [set|del]connect_interval <seconds> 64 aemp [set|del]connect_interval <seconds>
64 aemp [set|del]framing_format [array] 65 aemp [set|del]framing_format [array]
65 aemp [set|del]auth_offer [array] 66 aemp [set|del]auth_offer [array]
66 aemp [set|del]auth_accept [array] 67 aemp [set|del]auth_accept [array]
463The low-level transport protocol betwene two nodes also has a number of 464The low-level transport protocol betwene two nodes also has a number of
464configurable options, most of which should not be touched unless you know 465configurable options, most of which should not be touched unless you know
465what you are doing. 466what you are doing.
466 467
467=over 4 468=over 4
469
470=item [set|del]secure <boolean>
471
472Normally, nodes allow anything to be done to them by remote nodes,
473including remotely-triggered execution of code.
474
475Sometimes a more secure mode is desired - this can be achieved by setting
476the secure option to a true value.
477
478When secure mode is enabled, then remote nodes cannot execute code
479locally, at least not via the normal node protocol. All other messages are
480still allowed. This means remote nodes can monitor, kill or local ports
481(port names can be easily guessed).
482
483At the moment, this affects C<eval_on> and C<spawn> functionality.
484
485The C<configure> function additionally allows you to specify a callback
486that can grant or suppress such requests on a per-node basis.
468 487
469=item [set|del]monitor_timeout <seconds> 488=item [set|del]monitor_timeout <seconds>
470 489
471Sets the default monitor timeout, that is, when a connection to a node 490Sets the default monitor timeout, that is, when a connection to a node
472cannot be established within this many seconds, the node is declared 491cannot be established within this many seconds, the node is declared
970 }, 989 },
971); 990);
972 991
973for my $attr (qw( 992for my $attr (qw(
974 monitor_timeout connect_interval framing_format auth_offer 993 monitor_timeout connect_interval framing_format auth_offer
975 auth_accept autocork nodelay 994 auth_accept autocork nodelay secure
976)) { 995)) {
977 $CMD{"set$attr"} = sub { 996 $CMD{"set$attr"} = sub {
978 @ARGV >= 1 997 @ARGV >= 1
979 or die "$attr value is missing\n"; 998 or die "$attr value is missing\n";
980 999

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines