[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] IOCP: evconnlistener_free doesn't close listening socket
Of course.
Unit tests run fine too.
/Juan
2012/10/25 Nick Mathewson <nickm@xxxxxxxxxxxxx>:
> On Thu, Oct 25, 2012 at 2:15 PM, Juan Pablo Fernandez
> <this.juan@xxxxxxxxx> wrote:
>> Ok.
>>
>> How about this:
>>
>> --- listener.c 2012-07-26 16:24:04.000000000 +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)
>> + evutil_closesocket(lev_iocp->fd);
>> UNLOCK(lev);
>> return 0;
>> }
>>
>
> That looks simple enough. Did you test it? Did it work?
> ***********************************************************************
> To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
> unsubscribe libevent-users in the body.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.