… | |
… | |
1317 | |
1317 | |
1318 | Not opening a connection to every other node is usually an advantage, |
1318 | Not opening a connection to every other node is usually an advantage, |
1319 | except when you need the lower latency of an already established |
1319 | except when you need the lower latency of an already established |
1320 | connection. To ensure a node establishes a connection to another node, |
1320 | connection. To ensure a node establishes a connection to another node, |
1321 | you can monitor the node port (C<mon $node, ...>), which will attempt to |
1321 | you can monitor the node port (C<mon $node, ...>), which will attempt to |
1322 | create the connection (And notify you when the connection fails). |
1322 | create the connection (and notify you when the connection fails). |
1323 | |
1323 | |
1324 | =item Listener-less nodes are gone. |
1324 | =item Listener-less nodes (nodes without binds) are gone. |
1325 | |
1325 | |
1326 | And are not coming back, at least not in their old form. |
1326 | And are not coming back, at least not in their old form. If no C<binds> |
|
|
1327 | are specified for a node, AnyEvent::MP now assumes a default of C<*:*>. |
1327 | |
1328 | |
1328 | There are vague plans to implement some form of routing domains, which |
1329 | There are vague plans to implement some form of routing domains, which |
1329 | might or might not bring back listener-less nodes, but don't count on it. |
1330 | might or might not bring back listener-less nodes, but don't count on it. |
1330 | |
1331 | |
1331 | The fact that most connections are now optional somewhat mitigates this, |
1332 | The fact that most connections are now optional somewhat mitigates this, |
1332 | as a node can be effectively unreachable from the outside without any |
1333 | as a node can be effectively unreachable from the outside without any |
1333 | problems, as long as it isn't a global node and only reaches out to other |
1334 | problems, as long as it isn't a global node and only reaches out to other |
1334 | nodes (as opposed to being contacted from other nodes). |
1335 | nodes (as opposed to being contacted from other nodes). |
1335 | |
1336 | |
|
|
1337 | =item $AnyEvent::MP::Kernel::WARN has gone. |
|
|
1338 | |
|
|
1339 | AnyEvent has acquired a logging framework (L<AnyEvent::Log>), and AEMP now |
|
|
1340 | uses this, and so should your programs. |
|
|
1341 | |
|
|
1342 | Every module now documents what kinds of messages it generates, with |
|
|
1343 | AnyEvent::MP acting as a catch all. |
|
|
1344 | |
|
|
1345 | On the positive side, this means that instead of setting |
|
|
1346 | C<PERL_ANYEVENT_MP_WARNLEVEL>, you can get away by setting C<AE_VERBOSE>, |
|
|
1347 | much less to type. |
|
|
1348 | |
1336 | =back |
1349 | =back |
1337 | |
1350 | |
1338 | =head1 SEE ALSO |
1351 | =head1 SEE ALSO |
1339 | |
1352 | |
1340 | L<AnyEvent::MP::Intro> - a gentle introduction. |
1353 | L<AnyEvent::MP::Intro> - a gentle introduction. |