mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Kevin Ko
0848814ac4
Fix failing assertion introducd in commit 0d6622e
Patch in question: - Fix the case when failed evhttp_make_request() leaved request in the queue. - http://levent.git.sourceforge.net/git/gitweb.cgi?p=levent/libevent;a=commit;h=0d6622e The above patch introduces a failing assertion in evhttp_connection_fail(). This happens because the patch defers the assignment of the outstanding request to the evcon->requests list, while evhttp_connection_fail() assumes that the request lies in the list. One scenario in which this can happen is when the request list is empty and a connection is made to an unreachable host. The assertion will then fail after bufferevent_socket_connect() errors out (with ENETUNREACH in my case).
0. BUILDING AND INSTALLATION (Briefly) $ ./configure $ make $ make verify # (optional) $ sudo make install 1. BUILDING AND INSTALLATION (In Depth) To build libevent, type $ ./configure && make (If you got libevent from the git repository, you will first need to run the included "autogen.sh" script in order to generate the configure script.) You can run the regression tests by running $ make verify Install as root via # make install Before, reporting any problems, please run the regression tests. To enable the low-level tracing build the library as: CFLAGS=-DUSE_DEBUG ./configure [...] Standard configure flags should work. In particular, see: --disable-shared Only build static libraries --prefix Install all files relative to this directory. The configure script also supports the following flags: --enable-gcc-warnings Enable extra compiler checking with GCC. --disable-malloc-replacement Don't let applications replace our memory management functions --disable-openssl Disable support for OpenSSL encryption. --disable-thread-support Don't support multithreaded environments. 2. USEFUL LINKS: For the latest released version of Libevent, see the official website at http://monkey.org/~provos/libevent/ . There's a pretty good work-in-progress manual up at http://www.wangafu.net/~nickm/libevent-book/ . For the latest development versions of Libevent, access our Git repository via "git clone git://levent.git.sourceforge.net/gitroot/levent/libevent" You can browse the git repository online at http://levent.git.sourceforge.net/git/gitweb-index.cgi . To report bugs, request features, or submit patches to Libevent, use the Sourceforge trackers at https://sourceforge.net/tracker/?group_id=50884 . There's also a libevent-users mailing list for talking about Libevent use and development: http://archives.seul.org/libevent/users/ 3. ACKNOWLEDGMENTS The following people have helped with suggestions, ideas, code or fixing bugs: Alejo Weston Andros Adamson William Ahern Ivan Andropov Avi Bab Gilad Benjamini Stas Bekman Joachim Bauch Denis Bilenko Julien Blache Kevin Bowling Tomash Brechko Kelly Brock Ralph Castain Shuo Chen Ka-Hing Cheung Andrew Danforth Christopher Davis Mike Davis Mihai Draghicioiu Mark Ellzey Shie Erlich Christophe Fillot Alexander von Gernler Artur Grabowski Dave Hart Michael Herf Sebastian Hahn Aaron Hopkins Tani Hosokawa Claudio Jeker Evan Jones Phua Keat Marko Kreen Valery Kyholodov Scott Lamb Christopher Layne Adam Langley Philip Lewis Zhou Li David Libenzi Yan Lin Moshe Litvin Hagne Mahre Lubomir Marinov Nick Mathewson James Mansion Nicholas Marriott Andrey Matveev Caitlin Mercer Dagobert Michelsen Felix Nawothnig Trond Norbye Linus Nordberg Richard Nyberg Jon Oberheide Phil Oleson Dave Pacheco Tassilo von Parseval Simon Perreault Pierre Phaneuf Ryan Phillips Dimitre Piskyulev Pavel Plesov Jon Poland Bert JW Regeer Hanna Schroeter Ralf Schmitt Mike Smellie Kevin Springborn Harlan Stenn Ferenc Szalai Dug Song Dongsheng Song Brodie Thiesfield Jason Toffaletti Bas Verhoeven Constantine Verutin Zack Weinberg Jardel Weyrich Taral propanbutan mmadia If we have forgotten your name, please contact us.
Description
Languages
C
87%
Roff
3.8%
CMake
3.6%
M4
2.5%
Python
2.2%
Other
0.9%