summaryrefslogtreecommitdiffstats
path: root/lib/libevent (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan2012-08-021-2/+1
| | | | ok guenther@
* r1.27 changed libevent to fire a read event when kqueue returned EBADFnicm2012-02-081-1/+2
| | | | | | | | | | | | | (and several other things, particularly EPIPE) on a file descriptor. This causes Google Chrome to die (probably due to a bug in Chrome but finding that is next to impossible at the moment). It's not really clear what libevent should when an invalid fd is added - the poll backend doesn't fire an event and select exits the event loop. Until this is settled, change kqueue to match poll and ignore EBADF, keeping the behaviour r1.27 fixed on EPIPE. Fix from robert@.
* Handle a wider range of kqueue error return values for an event,nicm2012-01-301-21/+40
| | | | | | | | prevents libevent exiting the event loop when getting EPIPE. Problem first seen by drahn@ and more recently hit by gilles@, fix based on one by Nick Mathewson. ok gilles
* fix typos; while here, improve spacing in comments.sobrado2011-07-071-3/+3
| | | | | | changes to libevent and zlib headers sent to the upstream maintainers. ok jmc@ (for typos), millert@
* Fix from upstream to make all backends reinit on event_reinit(). Thisnicm2010-08-301-2/+7
| | | | | | | | | | was not being done for poll and select, so after fork they would remain using the same socketpair for signal notification, leading to a race between the two processes to read from it and hangs. Problem originally reported by kili@. ok gilles
* add missing header needed by event_warn()chl2010-07-171-1/+2
| | | | ok nicm@
* Update to 1.4.14b.nicm2010-07-126-23/+67
| | | | | | | | | | | | | | From their change log: o Fix memory-leak of signal handler array with kqueue. [backport] o Make evutil_make_socket_nonblocking() leave any other flags alone. o Adjusted fcntl() retval comparison on evutil_make_socket_nonblocking(). o Re-add event_siglcb; some old code _was_ still using it. :( o Fix a free(NULL) in min_heap.h o Clean up properly when adding a signal handler fails. Also a local change to use an int rather than a long for fcntl(). ok guenther deraadt
* Hide the timeout_* macros under an EVENT_DEPRECATED ifdef. These namesnicm2010-05-311-1/+11
| | | | | | | | invite conflicts, they are rarely used, can trivially be replaced by evtimer_*, and are deprecated and removed from event.h in later libevent versions. ok guenther deraadt
* tweak previous; ok nicmjmc2010-04-221-10/+11
|
* Whoops, EVUTIL_SET_SOCKET_ERROR went missing.nicm2010-04-221-1/+3
|
* Clean up the awful _EVENT_* poo in the libevent headers, and don'tnicm2010-04-217-421/+23
| | | | | | install event-config.h. Pointed out by deraadt.
* Update libevent to 1.4.13.nicm2010-04-2123-4626/+2972
| | | | | | | | | | | | | This is the core library only, the DNS parts are removed and it does not include the other extra bits (HTTP, DNS, and RPC), a separate port for these will appear in due course. Thanks to jsg, sthen, alek, gilles, jacekm, bernd and any others I've forgotten for testing/comments. Note that /usr/include/evdns.h should be removed after updating. ok deraadt
* Fix evsignal_del()'s use of sigaction(): fill in a sigaction structguenther2010-01-101-2/+7
| | | | | | | and pass a pointer to that instead of passing SIG_DFL directly. (Probably the result of a bad signal()-->sigaction() translation...) ok deraadt@, nicm@, miod@
* change back to preferring kqueue, now that nicm, tedu and i havederaadt2009-11-121-4/+4
| | | | | fixed it (or, all the issues we are aware of so far). discussed with nicm
* stop using kqueue.deraadt2009-10-301-4/+4
|
* In evbuffer_readline, do not lose data upon malloc failure. From mainstream:jacekm2009-10-131-2/+1
| | | | | http://levent.svn.sourceforge.net/viewvc/levent?view=rev&revision=1436 ok gilles@
* - Use a const pointer for bufferevent_write.brad2008-05-024-9/+10
| | | | | | | | - Make event_init return struct event_base *. From the libevent SVN repo. ok millert@
* - Increment MAX_ADDRS in evdns so as to be quite large.brad2008-05-022-9/+10
| | | | | | | | | | - Accept as well-formed DNS replies with questions but no answers. - Fix for crash in evdns_resolve_reverse_ipv6(). - Move end of "extern C {" block to the end of evdns.h. From the libevent SVN repo. ok millert@
* Makefile: sort MLINKS and add event_base_once.3jmc2008-05-022-13/+13
| | | | event.3: fix NAME and remove spurious blank line
* Update to libevent 1.3e while retaining our local changes.brad2008-05-0215-671/+755
| | | | | "No objection" millert@ "the diff looks and works fine" reyk@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-3/+3
|
* Remove evhttp leftover, okay millert@pedro2007-06-041-216/+0
|
* convert to new .Dd format;jmc2007-05-312-4/+4
|
* do not doc the http partsderaadt2007-03-261-24/+24
|
* do not ship the http parts for now; ok millertderaadt2007-03-263-2423/+2
|
* nicer MLINKS chunkderaadt2007-03-221-17/+21
|
* Add missing constmillert2007-03-211-2/+29
| | | | List evhttp stuff commented out, should probably get its own man page
* event_init() and event_dispatch() take void. Add commented outmillert2007-03-211-3/+28
| | | | | entries for undocumented functions to be filled in later, preferably by someone who uses libevent.
* fix a formatting issue found by reyk;jmc2007-03-211-12/+12
|
* Use arc4random() to generate random IDs. In the future wemillert2007-03-212-3/+10
| | | | | may want to consider using res_randomid() but since evdns.c checks for duplicates this is not strictly necessary.
* Document event_base_free(). OK jmc@millert2007-03-212-4/+11
|
* +.Xr evdns 3 ,jmc2007-03-191-1/+2
|
* further cleanup;jmc2007-03-191-17/+16
|
* add MLINKS for evdns_err_to_string() and evdns_nameserver_add();jmc2007-03-191-1/+2
|
* clean up this page;jmc2007-03-191-79/+113
|
* provide MLINKS for evhttp_start() and evhttp_free();jmc2007-03-191-1/+2
|
* tweaks;jmc2007-03-191-4/+4
|
* Update to libevent-1.3b while retaining our local changes. beck@ OKmillert2007-03-1920-58/+6944
|
* Avoid double recacl when loop_once is used.millert2007-02-131-8/+5
| | | | From libevent SVN via brad@.
* Add prototype for bufferevent_base_set().millert2007-02-131-1/+2
| | | | From the libevent SVN repo, by Thorsten Glaser via brad@
* Two libevent fixes from the SVN repo:millert2007-02-043-7/+10
| | | | | allow gotsig to terminate active event loop and evbuffer_find fix. OK brad@ pyr@
* 'tranfer' -> 'transfer' in comments.krw2006-12-211-2/+2
|
* fix a potential problem in multiple handling of va_list; use va_copy instead.brad2006-11-261-4/+10
| | | | | | From Niels Provos via the libevent SVN, by Alejo. ok deraadt@
* fail without leaking memory when poll set extension fails.brad2006-11-261-15/+35
| | | | | | From Niels Provos via the libevent SVN ok deraadt@
* allow both read and write callbacks for bufferevents to be NULL.brad2006-11-262-4/+11
| | | | | | From Niels Provos via the libevent SVN ok deraadt@
* typo in kqueue delete.brad2006-11-051-2/+2
| | | | | | From Niels Provos via the libevent SVN repo, by Bert JW. Regeer ok deraadt@
* fix a potential memory leak in event_once().brad2006-11-051-2/+7
| | | | | | | | From Niels Provos via the libevent SVN repo, by Scott Lamb tested by niallo@ ok deraadt@
* bufferevent_write() return code misdocumented; ok jmcderaadt2006-10-211-3/+5
|
* introduce a way to free the base.brad2006-03-306-9/+100
| | | | From libevent CVS
* use clock_gettime if available.brad2006-03-282-9/+32
| | | | | | From claudio@ via libevent CVS ok claudio@