Re: [Libevent-users] Memory management

2012-10-25 Thread Bruno Avila
> > I have a few questions about the memory management of libevent. > > > > 1) I replaced the memory functions of libvevent using > > event_set_mem_functions() with my own functions and I added a counter for > > malloc, realloc and free (Yes, I implemented the special cases realloc(NULL, > > size)

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.fix 2012-10-25 15:05:24.809285000 +0200 >> @@ -74

Re: [Libevent-users] DLL on Windows

2012-10-25 Thread Nick Mathewson
On Thu, Oct 25, 2012 at 3:01 PM, Jan Danielsson wrote: > Hello, > >I figured out one can run "nmake -f makefile.nmake" to get static > libraries which may or may not work (according to the makefile). I've had reports that they work, but I'd really like some windows person with more build expe

Re: [Libevent-users] Memory management

2012-10-25 Thread Nick Mathewson
On Thu, Oct 25, 2012 at 2:21 PM, Bruno Avila wrote: > Hi all. > > I have a few questions about the memory management of libevent. > > 1) I replaced the memory functions of libvevent using > event_set_mem_functions() with my own functions and I added a counter for > malloc, realloc and free (Yes, I

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

2012-10-25 Thread 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.fix 2012-10-25 15:05:24.809285000 +0200 > @@ -741,6 +741,9 @@ > } > LeaveCriticalSection(&as->lock);

[Libevent-users] DLL on Windows

2012-10-25 Thread Jan Danielsson
Hello, I figured out one can run "nmake -f makefile.nmake" to get static libraries which may or may not work (according to the makefile). But is there an official way to build DLLs? -- Kind regards, Jan Danielsson *** To uns

[Libevent-users] Memory management

2012-10-25 Thread Bruno Avila
Hi all. I have a few questions about the memory management of libevent. 1) I replaced the memory functions of libvevent using * event_set_mem_functions()* with my own functions and I added a counter for malloc, realloc and free (Yes, I implemented the special cases realloc(NULL, size) and realloc

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

2012-10-25 Thread Juan Pablo Fernandez
Ok. How about this: --- listener.c 2012-07-26 16:24:04.0 +0200 +++ listener.c.fix 2012-10-25 15:05:24.809285000 +0200 @@ -741,6 +741,9 @@ } LeaveCriticalSection(&as->lock); } + + if (shutdown && lev->flags & LEV_OPT_CLOSE_ON_FREE) +