libevent
libevent copied to clipboard
Event notification library
Linux-specific signal handling backend based on `signalfd(2)` system call, and public function `event_base_get_signal_method()` to obtain an underlying kernel signal handling mechanism.
On GNU/Linux with epoll backend, prefer `epoll_pwait2()` if available, which is useful to support the timeout with microsecond precision (not nanosecond because an existing code uses `struct timeval` rather than...
The only way I've found to know which format to write RPC specification seems to read event_rpcgen.py code or looking at regress.rpc example file, but it's not completely clear. Is...
On Windows, if I call `evthread_use_windows_threads`, libevent may ues `evutil_win_socketpair_afunix` t make thread notifiable and use `GetTempPathA` to generate a temporary path. `GetTempPathA` use `TMP` environment variable to generate temporary...
Support 6.9 and 7.1 Refs: #1316
Hi! I'm currently [packaging `libevent` for `build2`](https://github.com/build2-packaging/libevent) ([`v2.1.12-stable`](https://github.com/libevent/libevent/tree/release-2.1.12-stable)) and in the process of doing so I noticed that the config files (eg. `event-config.h.cmake`) lists _a lot_ of unused defines. It...
`_GNU_SOURCE` is defined in the private config header but also on the compiler command-line for every object. https://github.com/libevent/libevent/blob/b19af675c7601a7867f26c33072cda7ea125adb2/CMakeLists.txt#L399-L402 https://github.com/libevent/libevent/blob/b19af675c7601a7867f26c33072cda7ea125adb2/evconfig-private.h.cmake#L8-L10
When dns resolution retrieves answers but not of the requested address family, it passes NULL as the answer. Then `bufferevent_connect_getaddrinfo_cb` crashes. This is documented here: https://github.com/libevent/libevent/blob/99fd68abde4a59b90148db733fc51a7256cbd320/evdns.c#L5567 To address this, this...
Refs: https://github.com/libevent/libevent/commit/cffb7c03f1965b4706435315dd3456061d53a102#commitcomment-138374733