Re: [Libevent-users] _EVUTIL_NIL_CONDITION cause VC2010 error C2070

2011-01-01 Thread Nick Mathewson
On Sat, Jan 1, 2011 at 11:03 PM, Dongsheng Song wrote: > Of course, it works. > > Maybe you should add an comment for why use sizeof(!(condition)), in > order to avoid > improper rollback accidentally. Good idea; merged it. Thanks! -- Nick **

Re: [Libevent-users] _EVUTIL_NIL_CONDITION cause VC2010 error C2070

2011-01-01 Thread Dongsheng Song
Of course, it works. Maybe you should add an comment for why use sizeof(!(condition)), in order to avoid improper rollback accidentally. On Sun, Jan 2, 2011 at 10:36, Nick Mathewson wrote: > On Sat, Dec 25, 2010 at 10:21 PM, Dongsheng Song > wrote: >> Hi Jones, >> >> Your commit b63ab17 caused

Re: [Libevent-users] _EVUTIL_NIL_CONDITION cause VC2010 error C2070

2011-01-01 Thread Nick Mathewson
On Sat, Dec 25, 2010 at 10:21 PM, Dongsheng Song wrote: > Hi Jones, > > Your commit b63ab17 caused VC2010 error C2070: > > bufferevent_async.c(409) : error C2070: 'unsigned int': illegal sizeof operand > bufferevent_async.c(434) : error C2070: 'unsigned int': illegal sizeof operand > bufferevent_a

[Libevent-users] Re: newbie questions on rpc and threading in libevent

2011-01-01 Thread Nick Mathewson
On Wed, Dec 22, 2010 at 3:24 AM, Wayne Shao wrote: > Hi > I find out about libevent when I was searching for some asych i/o framework > with simple http handling + websocket. > I have not read through the code yet. I have a few questions, > 1) Threading:  Is i/o handling in a single threaded?  Is

Re: [Libevent-users] Re: Libevent 2.0.10-stable is released

2011-01-01 Thread Nick Mathewson
On Sat, Dec 25, 2010 at 11:05 AM, Dongsheng Song wrote: > Hi all, > > When I test with vc2010, static link passed all regress test, but dll > version have may failed: It would probably help to see what error CreateProcess is actually giving there. Can you step through with a debugger to find out

Re: [Libevent-users] Handling POLLHUP in evport.c

2011-01-01 Thread Nick Mathewson
On Wed, Dec 29, 2010 at 6:07 AM, Yee Keat Phuah wrote: > Hi, > > Recently I came across a scenario where I added a unix pipe in > bufferevent, but then when the pipe is closed, I experience an > infinite loop. > > This happens in Solaris 10 using evport by default. > > Its traced down to evport.c: