… | |
… | |
777 | |
777 | |
778 | AnyEvent::IGS |
778 | AnyEvent::IGS |
779 | A non-blocking interface to the Internet Go Server protocol (used by |
779 | A non-blocking interface to the Internet Go Server protocol (used by |
780 | App::IGS). |
780 | App::IGS). |
781 | |
781 | |
|
|
782 | AnyEvent::IRC |
|
|
783 | AnyEvent based IRC client module family (replacing the older |
782 | Net::IRC3 |
784 | Net::IRC3). |
783 | AnyEvent based IRC client module family. |
|
|
784 | |
785 | |
785 | Net::XMPP2 |
786 | Net::XMPP2 |
786 | AnyEvent based XMPP (Jabber protocol) module family. |
787 | AnyEvent based XMPP (Jabber protocol) module family. |
787 | |
788 | |
788 | Net::FCP |
789 | Net::FCP |
… | |
… | |
1330 | |
1331 | |
1331 | Summary |
1332 | Summary |
1332 | * C-based event loops perform very well with small number of watchers, |
1333 | * C-based event loops perform very well with small number of watchers, |
1333 | as the management overhead dominates. |
1334 | as the management overhead dominates. |
1334 | |
1335 | |
|
|
1336 | SIGNALS |
|
|
1337 | AnyEvent currently installs handlers for these signals: |
|
|
1338 | |
|
|
1339 | SIGCHLD |
|
|
1340 | A handler for "SIGCHLD" is installed by AnyEvent's child watcher |
|
|
1341 | emulation for event loops that do not support them natively. Also, |
|
|
1342 | some event loops install a similar handler. |
|
|
1343 | |
|
|
1344 | SIGPIPE |
|
|
1345 | A no-op handler is installed for "SIGPIPE" when $SIG{PIPE} is |
|
|
1346 | "undef" when AnyEvent gets loaded. |
|
|
1347 | |
|
|
1348 | The rationale for this is that AnyEvent users usually do not really |
|
|
1349 | depend on SIGPIPE delivery (which is purely an optimisation for |
|
|
1350 | shell use, or badly-written programs), but "SIGPIPE" can cause |
|
|
1351 | spurious and rare program exits as a lot of people do not expect |
|
|
1352 | "SIGPIPE" when writing to some random socket. |
|
|
1353 | |
|
|
1354 | The rationale for installing a no-op handler as opposed to ignoring |
|
|
1355 | it is that this way, the handler will be restored to defaults on |
|
|
1356 | exec. |
|
|
1357 | |
|
|
1358 | Feel free to install your own handler, or reset it to defaults. |
|
|
1359 | |
1335 | FORK |
1360 | FORK |
1336 | Most event libraries are not fork-safe. The ones who are usually are |
1361 | Most event libraries are not fork-safe. The ones who are usually are |
1337 | because they rely on inefficient but fork-safe "select" or "poll" calls. |
1362 | because they rely on inefficient but fork-safe "select" or "poll" calls. |
1338 | Only EV is fully fork-aware. |
1363 | Only EV is fully fork-aware. |
1339 | |
1364 | |