| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
While at it: KNF and switch from reallocarray to recallocarray.
ok tedu
|
| |
|
|
|
| |
this has no effect except to make ktrace output prettier.
ok bluhm mpi
|
| |
|
|
| |
OK bluhm@ nicm@
|
| |
|
|
|
|
|
|
|
| |
tcpbench (at a minimum) relies on the old behavior of changes all happening
after all event handlers run. in particular, it resets the event for the
listening socket *before* calling accept(), when it is still readable.
kevent then (correctly) says it is readable on the next go through the loop.
silly, subtle, and stupid.
problem reported by kettenis
|
| |
|
|
|
|
|
|
|
|
|
|
| |
of deferring until the dispatch loop. kqueue support for various types
of files and filesystems has been historically incomplete, and kevent
handles this condition by returning an error. the libevent dispatch
loop has no way to recover from this error and fails catastrophically,
bringing down the entire process because one file went bad.
now, instead of all that happending, event_add will return an error. the
application can choose to handle or ignore this error, but at least the
band will play on.
ok nicm
|
| |
|
|
| |
OK nicm@
|
| |
|
|
|
| |
useless. Let libevent call the libc functions directly.
OK nicm@
|
| |
|
|
| |
OK nicm@
|
| |
|
|
| |
OK nicm@
|
| |
|
|
| |
OK nicm@
|
| |
|
|
|
| |
Do not include sys/param.h.
OK nicm@
|
| |
|
|
| |
OK nicm@
|
| |
|
|
|
| |
pattern.
This commit does not fix the non-obvious bloody horror of select.c.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
(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@.
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
"No objection" millert@
"the diff looks and works fine" reyk@
|
| | |
|
| | |
|
| |
|
|
|
|
| |
From Niels Provos via the libevent SVN repo, by Bert JW. Regeer
ok deraadt@
|
| |
|
|
| |
From libevent CVS
|
| |
|
|
|
|
| |
From libevent CVS
ok deraadt@
|
| |
|
|
| |
ok brad@ beck@
|
| |
|
|
| |
ok grunk@
|
| |
|
|
|
|
|
| |
thanks to Alexander von Gernler for testing
and some bug fixes
ok mpf@ norby@
|
| |
|
|
|
|
|
|
|
|
| |
no shared lib so no ABI/API check is necessary
thanks to Alexander von Gernler for submitting
another diff in an attempt to update libevent
and for a use-after-free fix.
ok henning@ deraadt@
|
| | |
|
| | |
|
| |
|
|
| |
ok markus@
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
ok miod@
|
| | |
|
| |
|
|
| |
provos@ ok.
|
| | |
|
| | |
|
| | |
|
|
|
supporting timeout and signal callsbacks, too. okay deraadt@ millert@
|