… | |
… | |
39 | resolve_node initialise_node |
39 | resolve_node initialise_node |
40 | ); |
40 | ); |
41 | |
41 | |
42 | our $DEFAULT_PORT = "4040"; |
42 | our $DEFAULT_PORT = "4040"; |
43 | |
43 | |
44 | our $CONNECT_INTERVAL = 2; # new connect every 2s, at least |
44 | our $CONNECT_INTERVAL = 2; # new connect every 2s, at least |
45 | our $CONNECT_TIMEOUT = 5; # includes handshake |
45 | our $CONNECT_TIMEOUT = 5; # activity timeout |
46 | our $CONNECT_TIMEOUT_MAX = 90; # never retry less often |
46 | our $MONITOR_TIMEOUT = 15; # fail monitoring after this time |
47 | |
47 | |
48 | =item $AnyEvent::MP::Base::WARN |
48 | =item $AnyEvent::MP::Base::WARN |
49 | |
49 | |
50 | This value is called with an error or warning message, when e.g. a connection |
50 | This value is called with an error or warning message, when e.g. a connection |
51 | could not be created, authorisation failed and so on. |
51 | could not be created, authorisation failed and so on. |