[Libevent-users] EV_CHANGE_xxx macros

2010-10-25 Thread Gilad Benjamini
The definition of the EV_CHANGE_xxx macros partially relies on the definition of a different set of macros (EV_SIGNAL, EV_PERSIST, etc.). There are two issues I see with that. First, both EV_CHANGE_ADD and EV_TIMEOUT are defined as 1, which might lead to situations where a bit can be interpreted a

Re: [Libevent-users] not make full use of evbuffer_chain

2010-10-25 Thread Nick Mathewson
On Fri, Oct 22, 2010 at 8:37 PM, lin yan wrote: > In libevent-2.0.8-rc, buffer.c: evbuffer_add() > Code was: > 1470 in evbuffer_add(struct evbuffer *buf, const void *data_in, size_t > datlen) > 1471 { >          > 1505 } else if ((size_t)chain->misalign >= datlen && !CHAIN_PINNED(chain)) { >

[Libevent-users] Libevent 2.0.8 crashes on Windows without WSAStartup

2010-10-25 Thread bottig...@gmail.com
I've compiled libevent on windows 7 32bit with Mingw successfully. Unfortunately when I run a few test programs, some of them will print: [warn] evsig_init: socketpair: Successful WSAStartup not yet performed [WSANOTINITIALISED ] [warn] evthread_make_base_notifiable: socketpair: Successful WSAStar