Hello,
Thanks to the invaluable help of "debug-master" Dossy, it looks like we
found the culprit to the server going crazy ... at least in my case
(Mac OS X etc etc etc).
It's, as I pointed out before, in the "NsOpenSSLConnOp" function in the
"ssl.c" file of nsopenssl. That function has a "switch" statement that
contains:
case NSOPENSSL_SEND:
rc = SSL_write(ssl, (char *) buffer, bytes);
if (rc > 0) {
total += rc;
}
if (total >= bytes) {
return total;
}
break;
I just made a change to:
case NSOPENSSL_SEND:
rc = SSL_write(ssl, (char *) buffer, bytes);
if (rc > 0) {
total += rc;
} else if (rc < 0) {
break;
}
if (total >= bytes) {
return total;
}
break;
Since it was entering the "if (total >= bytes) " and then doing the
"return total" instead of hitting the "break" statement.
This simple fix has solved my problem with SSL going crazy ...
Dossy said that this might need to be re-written ... but at least it
works for me on my Mac OS X PowerBook G4 (not really a production
environment though ;) ).
Cheers and thanks,
/B
--
Bruno Mattarollo <[EMAIL PROTECTED]>
Currently in: Sydney, Australia
[ http://pokies.typepad.com/virtual_possum/ ]
--
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.