XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum [Powered by Invision Power Board]
Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > Announcements > XMail 1.24-pre11 released !


Posted by: hschneider Dec 12 2006, 11:45 PM
QUOTE

Ok, there *was* a bug in the Windows implementation of the SSL code.
Actually the problem was in the Win32 system layer, in the set-noblock
function. To set a socket in blocking mode using ioctlsocket(FIONBIO), you
need to clear any previous WSAEventSelect(), that the code seemed to do
according to such MSDN statement:

"To cancel the association and selection of network events on a socket,
lNetworkEvents should be set to zero, in which case the hEventObject
parameter will be ignored."

This is what the Win32 layer was doing.
OTOH, in another section of the documentation, states that to clear
pending event associations, you need to:

"To set socket s back to blocking mode, it is first necessary to clear the
event record associated with socket s via a call to WSAEventSelect with
lNetworkEvents set to zero and the hEventObject parameter set to NULL.
You can then call ioctlsocket or WSAIoctl to set the socket back to
blocking mode."

So the fscking hEventObject MUST be set to NULL in order for the event
object to be de-associated with the socket. Damn it!
This might have caused the wierd timeouts and behaviour on SSL-XMail
runing on Windows, that I wasn't seeing in my tests very likely because of
timings (running Outlook on the same XMail box).
Here are pre11 packages:

http://www.xmailserver.org/xmail-1.24-pre11.tar.gz
http://www.xmailserver.org/xmail-1.24-pre11.win32bin.zip

Test reports welcome ...



- Davide

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)