| f602211f | 29-Oct-2019 |
Philip Homburg <[email protected]> |
Parse IPv6 scope IDs.
(cherry picked from commit 9fecb59a94ef246088d7f3e0365c2fe80d0df2f4) |
| a4f0387c | 22-Sep-2019 |
Azat Khuzhin <[email protected]> |
Merge branch 'upstream/pr/899' (evbuffer_freeze testcase enhancements)
* upstream/pr/899: improve the description of parameter to evbuffer_read() regress_buffer: improve testcase for evbuffer_fr
Merge branch 'upstream/pr/899' (evbuffer_freeze testcase enhancements)
* upstream/pr/899: improve the description of parameter to evbuffer_read() regress_buffer: improve testcase for evbuffer_freeze()
(cherry picked from commit a977d6963611c729b75108d31bf74718b7b3e06d)
show more ...
|
| 598f247d | 31-Jul-2019 |
Azat Khuzhin <[email protected]> |
buffer: fix possible NULL dereference in evbuffer_setcb() on ENOMEM
[ @azat:
- add return heredoc for evbuffer_setcb() - add unit test with event_set_mem_functions() - look through the report
buffer: fix possible NULL dereference in evbuffer_setcb() on ENOMEM
[ @azat:
- add return heredoc for evbuffer_setcb() - add unit test with event_set_mem_functions() - look through the report from abi-compliance-checker/abi-dumper ]
Closes: #855 (cherry picked from commit bdcade47224f154052c927aed3c363a18b37112e)
show more ...
|
| 546a366c | 15-Jun-2019 |
Azat Khuzhin <[email protected]> |
evdns: add new options -- so-rcvbuf/so-sndbuf
This will allow to customize SO_RCVBUF/SO_SNDBUF for nameservers in this evdns_base, you may want to adjust them if the kernel starts dropping udp packa
evdns: add new options -- so-rcvbuf/so-sndbuf
This will allow to customize SO_RCVBUF/SO_SNDBUF for nameservers in this evdns_base, you may want to adjust them if the kernel starts dropping udp packages.
(cherry picked from commit 538141eb7e590bc94c043b43b5e5483b13bc9c5e)
show more ...
|
| 483f8a29 | 30-May-2019 |
yuangongji <[email protected]> |
typo error in header file
(cherry picked from commit c03dabd76aced01a9c8d253381c2ed6f3ad46b4f) |
| 18104973 | 31-Jul-2019 |
Azat Khuzhin <[email protected]> |
Revert "Protect min_heap_push_ against integer overflow."
This patch breaks the ABI compatibility, due to min_heap_idx expansion [1]
And since major distros did not updated to 2.1.10 yet, this patc
Revert "Protect min_heap_push_ against integer overflow."
This patch breaks the ABI compatibility, due to min_heap_idx expansion [1]
And since major distros did not updated to 2.1.10 yet, this patch will be reverted: - debian: https://packages.debian.org/search?keywords=libevent-dev - ubuntu: https://packages.ubuntu.com/search?keywords=libevent-dev - fedora: https://apps.fedoraproject.org/packages/libevent-devel
Also there is one that upgraded already: - archlinux: https://www.archlinux.org/packages/?q=libevent But archlinux is for developers, so it should be fine I guess.
[1]: https://abi-laboratory.pro/index.php?view=objects_report&l=libevent&v1=2.1.9&v2=2.1.10
- struct event_base Change: Size of this type has been changed from 672 bytes to 664 bytes. Effect: The fields or parameters of such data type may be incorrectly initialized or accessed by old client applications.
abi-compliance-checker diff with 2.1.9 before this patch: Binary compatibility: 69.2% Source compatibility: 100% Total binary compatibility problems: 1, warnings: 1 Total source compatibility problems: 0, warnings: 0
after: Binary compatibility: 100% Source compatibility: 100% Total binary compatibility problems: 0, warnings: 0 Total source compatibility problems: 0, warnings: 0
This reverts commit 0b46bb8cc9c0337b5fa0186d9cb031ff4f4ceb9a
show more ...
|
| 0b46bb8c | 16-Apr-2019 |
Tobias Stoeckmann <[email protected]> |
Protect min_heap_push_ against integer overflow.
Converting unsigned to size_t for size of memory objects allows proper handling of very large heaps on 64 bit systems.
Signed-off-by: Tobias Stoeckm
Protect min_heap_push_ against integer overflow.
Converting unsigned to size_t for size of memory objects allows proper handling of very large heaps on 64 bit systems.
Signed-off-by: Tobias Stoeckmann <[email protected]> Closes: #799 (cherry-picked) (cherry picked from commit 176fd5665512db95b1cf38fc647a7c706d80c14d)
show more ...
|
| d83a517c | 04-Apr-2019 |
Azat Khuzhin <[email protected]> |
Remove experimental note for finalizers API
(cherry picked from commit 55f9863b18fe21ddd220d98941b7ac777593dde5) |
| 58e81106 | 31-Mar-2019 |
Azat Khuzhin <[email protected]> |
evdns: add DNS_OPTION_NAMESERVERS_NO_DEFAULT/EVDNS_BASE_NAMESERVERS_NO_DEFAULT
- DNS_OPTION_NAMESERVERS_NO_DEFAULT Do not "default" nameserver (i.e. "127.0.0.1:53") if there is no nameservers in
evdns: add DNS_OPTION_NAMESERVERS_NO_DEFAULT/EVDNS_BASE_NAMESERVERS_NO_DEFAULT
- DNS_OPTION_NAMESERVERS_NO_DEFAULT Do not "default" nameserver (i.e. "127.0.0.1:53") if there is no nameservers in resolv.conf, (iff DNS_OPTION_NAMESERVERS is set)
- EVDNS_BASE_NAMESERVERS_NO_DEFAULT If EVDNS_BASE_INITIALIZE_NAMESERVERS isset, do not add default nameserver if there are no nameservers in resolv.conf (just set DNS_OPTION_NAMESERVERS_NO_DEFAULT internally)
Fixes: #569 (cherry picked from commit e5b8f4c1925867d8e4cd7dc0390e5141d7ef1106)
show more ...
|
| aa5a65d1 | 31-Mar-2019 |
Azat Khuzhin <[email protected]> |
evdns: add descriptions for DNS_OPTION_*/DNS_OPTIONS_ALL
(cherry picked from commit 3e0dc1a6ab4b7024b93dc44c1bb79df0ef637fc0) |
| 3f893f0a | 10-Dec-2014 |
John Ohl <[email protected]> |
Add support for EV_TIMEOUT to event_base_active_by_fd
Closes: #194 (cherry-pick) (cherry picked from commit 62df1301ca943011fa9c398323049bcddca2694d) |
| 00ba9fa2 | 25-Feb-2019 |
Enji Cooper <[email protected]> |
Define `_GNU_SOURCE` properly/consistently per autoconf
Although `_GNU_SOURCE` can be defined as an arbitrary #define per the glibc docs [1], it's best to define it in a manner consistent with the w
Define `_GNU_SOURCE` properly/consistently per autoconf
Although `_GNU_SOURCE` can be defined as an arbitrary #define per the glibc docs [1], it's best to define it in a manner consistent with the way that autoconf defines it, i.e., `1`.
While this shouldn't matter in most cases, it does when the headers from other projects follow the poorly defined GNU convention implemented by autoconf and are included after the libevent's util.h header. An example failure with clang, similar to the failure I encountered, is as follows: ``` $ printf "#define _GNU_SOURCE\n#define _GNU_SOURCE 1" | clang -c -x c - <stdin>:2:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined] ^ <stdin>:1:9: note: previous definition is here ^ 1 warning generated. ```
This happened when compiling python [2] with a stale homebrew util.h file from libevent (which admittedly would not happen in a correct libevent install, as the header should be installed under /usr/local/include/event2/util.h). However, if both headers had been combined (which is more likely), it would have failed as shown above.
Removing the ad hoc definition unbreaks compiling python's pyconfig.h.in header when included after util.h from libevent.
1. http://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html 2. https://github.com/python/cpython/blob/master/configure.ac#L126
Closes: #773 (cherry-picked)
Signed-off-by: Enji Cooper <[email protected]> (cherry picked from commit 5f87be42f0ae0126938624a1419a572607078217)
show more ...
|
| e66078a0 | 29-Jan-2019 |
Azat Khuzhin <[email protected]> |
Eliminate fd conversion warnings and introduce EVUTIL_INVALID_SOCKET (windows)
windows has intptr_t instead of regular int.
Also tt_fd_op() had been introduced, since we cannot use tt_int_op() for
Eliminate fd conversion warnings and introduce EVUTIL_INVALID_SOCKET (windows)
windows has intptr_t instead of regular int.
Also tt_fd_op() had been introduced, since we cannot use tt_int_op() for comparing fd, since it is not always int.
(cherry picked from commit b29207dceee33832bb28ab103a833df6a2fd29d3)
show more ...
|
| a95cc9e3 | 11-Jan-2019 |
Azat Khuzhin <[email protected]> |
rpc: use *_new_with_arg() to match function prototype
In 755fbf16c ("Add void* arguments to request_new and reply_new evrpc hooks") this new functions had been introduced, but newer used, what for?
rpc: use *_new_with_arg() to match function prototype
In 755fbf16c ("Add void* arguments to request_new and reply_new evrpc hooks") this new functions had been introduced, but newer used, what for? So let's use them.
(cherry picked from commit 99b231b0d875bc0814b0e4a940b6c9890d2a7754)
show more ...
|
| 349081e1 | 28-Oct-2018 |
Azat Khuzhin <[email protected]> |
Merge branch 'win32-visibility-event_debug_logging_mask_'
* win32-visibility-event_debug_logging_mask_: Introduce EVENT_VISIBILITY_WANT_DLLIMPORT regress_http: use TT_BLAZER() over event_debug()
Merge branch 'win32-visibility-event_debug_logging_mask_'
* win32-visibility-event_debug_logging_mask_: Introduce EVENT_VISIBILITY_WANT_DLLIMPORT regress_http: use TT_BLAZER() over event_debug()
Fixes: #702 (cherry picked from commit fb8666453ce8bb1d599a68636bed5db5ef4a7a57)
show more ...
|
| 1c865238 | 28-Oct-2018 |
Azat Khuzhin <[email protected]> |
Check existence of IPV6_V6ONLY in evutil_make_listen_socket_ipv6only() (mingw32)
MinGW 32-bit 5.3.0 does not defines it and our appveyour [1] build reports this instantly: evutil.c: In function
Check existence of IPV6_V6ONLY in evutil_make_listen_socket_ipv6only() (mingw32)
MinGW 32-bit 5.3.0 does not defines it and our appveyour [1] build reports this instantly: evutil.c: In function 'evutil_make_listen_socket_ipv6only': evutil.c:392:40: error: 'IPV6_V6ONLY' undeclared (first use in this function) return setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (void*) &one,
[1]: https://www.appveyor.com/docs/windows-images-software/#mingw-msys-cygwin
Another solution will be to use mingw64 which has it, but I guess we do want that #ifdef anyway.
(cherry picked from commit 23e79fd764b9f36f560d470f0fb60295dd942ac2)
show more ...
|
| ba148796 | 04-Jun-2018 |
Murat Demirten <[email protected]> |
listener: ipv6only socket bind support
According to RFC3493 and most Linux distributions, default value is to work in IPv4-mapped mode. If there is a requirement to bind same port on same ip address
listener: ipv6only socket bind support
According to RFC3493 and most Linux distributions, default value is to work in IPv4-mapped mode. If there is a requirement to bind same port on same ip addresses but different handlers for both IPv4 and IPv6, it is required to set IPV6_V6ONLY socket option to be sure that the code works as expected without affected by bindv6only sysctl setting in system.
See an example working with this patch: https://gist.github.com/demirten/023008a63cd966e48b0ebcf9af7fc113
Closes: #640 (cherry-pick) (cherry picked from commit 387d91f9ab95df8ac3d7bb58493310ad4a377dcf)
show more ...
|
| 3f692fff | 17-Oct-2018 |
Azat Khuzhin <[email protected]> |
Merge branch 'be-wm-overrun-v2'
* be-wm-overrun-v2: Fix hangs due to watermarks overruns in bufferevents implementations test: cover watermarks (with some corner cases) in ssl bufferevent
Fixes
Merge branch 'be-wm-overrun-v2'
* be-wm-overrun-v2: Fix hangs due to watermarks overruns in bufferevents implementations test: cover watermarks (with some corner cases) in ssl bufferevent
Fixes: #690 (cherry picked from commit 878bb2d3b9484b27594308da1d0d6a7c9bdf6647)
show more ...
|
| aade513b | 05-Jul-2018 |
Xiaozhou Liu <[email protected]> |
Fix typo
Closes: #658 (cherry picked from commit 30d77f1b59bcd1433a89e803b9fa045c50883868) |
| 06ec5de6 | 16-Jun-2018 |
Philip Prindeville <[email protected]> |
Add convenience macros for user-triggered events
Signed-off-by: Philip Prindeville <[email protected]> Closes: #647 (picked) (cherry picked from commit d2acf67ec3ad2916236396992f094c0c65
Add convenience macros for user-triggered events
Signed-off-by: Philip Prindeville <[email protected]> Closes: #647 (picked) (cherry picked from commit d2acf67ec3ad2916236396992f094c0c65016028)
show more ...
|
| e2732c90 | 06-May-2018 |
Azat Khuzhin <[email protected]> |
Make rpc headers self-compilable
Fixes: #633 (cherry picked from commit c57f5c34903b02c6e7378865f71a2b83a5befb96) |
| 3bd2ce43 | 03-Apr-2018 |
dpayne <[email protected]> |
Generating evdns_base_config_windows_nameservers docs on all platforms
(cherry picked from commit 791e3de0c38f9f413f33addcac2d8bca68590ca6) |
| 80b70ee0 | 03-Apr-2018 |
dpayne <[email protected]> |
Fixing doxygen docs for evdns_base_search_clear when generated on non-windows machines
(cherry picked from commit 2c1562949c49febe9a4d5ec33cabe99f1f6a82e1) |
| 6200b821 | 15-Jan-2018 |
Dmitry Alimov <[email protected]> |
Fix typos in comments
(cherry picked from commit f24b28e4aff1dbc3440e283f70ac15aa7cebcc8d) |
| da4619b3 | 05-Nov-2017 |
ejurgensen <[email protected]> |
Fix incorrect ref to evhttp_get_decoded_uri in http.h
Replaces reference in the http.h include header file to evhttp_get_decoded_uri with evhttp_uridecode. There is no function called evhttp_get_dec
Fix incorrect ref to evhttp_get_decoded_uri in http.h
Replaces reference in the http.h include header file to evhttp_get_decoded_uri with evhttp_uridecode. There is no function called evhttp_get_decoded_uri.
(cherry picked from commit b49c70cc2ed54f511e2b41f7ed61d357c88300be)
show more ...
|