Comment 3 for bug 247038

Revision history for this message
Big Muscle (bigmuscle) wrote : Re: SSLSocket doesn't work correctly

so, changing SSLSocket::accept to non-blocking when calling waitAccepted(0) seems to fix the problem, but it eats too much CPU until all connections are connected successfully.

void SSLSocket::accept(const Socket& listeningSocket) throw(SocketException) {
 Socket::accept(listeningSocket);

 setBlocking(false);
 waitAccepted(0);
 setBlocking(true);
}