Re: [Libevent-users] IOCP: evconnlistener_free doesn't close listening socket

2012-10-25 Thread Juan Pablo Fernandez
Of course. Unit tests run fine too. /Juan 2012/10/25 Nick Mathewson : > On Thu, Oct 25, 2012 at 2:15 PM, Juan Pablo Fernandez > wrote: >> Ok. >> >> How about this: >> >> --- listener.c 2012-07-26 16:24:04.0 +0200 >> +++ listener.c.fi

Re: [Libevent-users] IOCP: evconnlistener_free doesn't close listening socket

2012-10-25 Thread Juan Pablo Fernandez
LEV_OPT_CLOSE_ON_FREE) + evutil_closesocket(lev_iocp->fd); UNLOCK(lev); return 0; } 2012/10/25 Nick Mathewson : > On Tue, Oct 23, 2012 at 3:34 PM, Juan Pablo Fernandez > wrote: >> IOCP event base and listener created with LEV_OPT_CLOSE_ON_FREE. >> Sho

[Libevent-users] IOCP and multiple event_bases

2012-02-13 Thread Juan Pablo Fernandez
Hi, If I want multiple event_bases, do I really want 2xcores IO worker threads for each base? (this is what seem to happen in 2.0.11). My thinking is that, 2xcores is optimal. And I should only use IOCP on a single base (and all socket io on that base). But on UNIX, multiple bases is good for pe

[Libevent-users] IOCP and multiple event_bases

2012-02-12 Thread Juan Pablo Fernandez
Hi, If I want multiple event_bases, do I really want 2xcores IO worker threads for each base? (this is what seem to happen in 2.0.11). My thinking is that, 2xcores is optimal. And I should only use IOCP on a single base (and all socket io on that base). But on UNIX, multiple bases is good for per

[Libevent-users] bufferevent_socket_connect_hostname and evdns_base not working

2011-10-01 Thread Juan Pablo Fernandez
Hi, I'm trying to get a async dns lookup with bufferevent_socket_connect_hostname but I always get 11003 (dns_error) in bufferevent_connect_getaddrinfo_cb. The thing is if I call bufferevent_socket_connect_hostname with evdns_base == NULL it connects just fine. I'm using latest libevent (2.0.14)

[Libevent-users] Test fail on Solaris

2011-08-01 Thread Juan Pablo Fernandez
Hi, I build libevent 2.0.12 on solaris just fine. But the regression test fails. Note that bug 3073353 is similar (or identical) to this, but still with the latest release it fails. SunOS sune 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V240 cc: Sun C 5.9 SunOS_sparc Build35_2 2006/12/04 ./

Re: [Libevent-users] message loop

2011-07-06 Thread Juan Pablo Fernandez
Probably not. 2011/7/6 Mark Ellzey : > On Wed, Jul 06, 2011 at 08:01:11PM +0200, mosta wrote: >> On 07/06/11 19:39, Mark Ellzey wrote: >> > Can you clarify what you mean by "message loop"? >> I mean the event base loop. > > Can you clarify what you mean by "over taking"? >

Re: [Libevent-users] libevent + bufferevent + IOCP = confused

2011-07-03 Thread Juan Pablo Fernandez
Thanks Nick. You know of any projects using buffevents + IOCP succesfully? I've read about memcached + libevent, but I don't think they use bufferevents. /Juan 2011/7/3 Nick Mathewson : > On Fri, Jul 1, 2011 at 11:26 AM, Juan Pablo Fernandez > wrote: >> Hi, >> >

[Libevent-users] libevent + bufferevent + IOCP = confused

2011-07-01 Thread Juan Pablo Fernandez
Hi, I've been experimenting with libevent on windows. I want to use IOCP, worker threads filling a queue layer in a server application. Bufferevents is a nice fit! And I've written a small server using bufferevents. However, I'm confused reading the documentation, saying: 1, It's experimental (o