It seems that the problem still remains (and is even more interesting).
After reading nssock sources, I realized that my checking if
NS_CONN_CLOSED flag is set would not make things any better - since
after doing close(), connPtr->socket is set to INVALID_SOCKET (to avoid
writing to invalid streams, probably).
Also, I noted that (very rarely) my email messages seem to arrive blank.
Since I do [catch] around most smtp::sendmessage statements, the logs do
not show any error messsages.
But my guess is that something (probably not AOLserver itself) is doing
close() or shutdown() on invalid sockets, which causes the problems.
This can't be any Tcl code, since Tcl only allows closing channels
created by Tcl.
Another question that comes to my mind. I do Ns_RegisterFilter on
NS_FILTER_PRE_AUTH, that occasianally does Ns_ConnRedirect() and returns
NS_FILTER_RETURN. Could this cause any problems? - in theory, it does
about the same.
--
WK
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of
your email blank.