[jdev] Bug in jabberd2 (2.1.13) on win32

Norman Rasmussen norman at rasmussen.co.za
Thu Jan 24 02:51:27 CST 2008

On Jan 24, 2008 2:14 AM, Dan Hulme <dhulme at gmail.com> wrote:

> This function appears to try to append the old closed socket to a
> linked list of free sockets.  When the new connection tries to use
> this socket, it has trouble.  Once the next connection connects,
> however, it will not use that socket as it is still in use, so it will
> work.  Not sure why the socket that is being appended is broken, but
> if this function is not called (at mio_impl.h: 267), the program works
> "fine."  It may not be reusing sockets, but everything else works.

In my experience win32 does weird things with closed sockets: if you close a
listening socket, it doesn't actually go away until all connected clients do
too.  It sounds like this is similar, and that perhaps for win32 you
shouldn't be trying to pool sockets.

- Norman Rasmussen
- Email: norman at rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20080124/3a534fe9/attachment-0002.htm>

More information about the JDev mailing list