Hi, Nelson!
Finally I've found and solved the problem.
Here the description:
My server is supports port-based sessions and each session
is single-threaded. So, the socket loop looks like this:
for(;;)
{
accept();
read();
write();
close();
}
If Mozilla gets the document, which pulls loading of other documents
(like HTML with many <IMG SRC...> or frameset), it opens several
connections to server, but _only_ _one_ (!) of these connections is
ready for SSL handshake. Thus, Mozilla opened, say, 5 connections and
tried to send SSL ClientHello message to, say, 3rd connection, but
I've accepted the first connection only and it of course timed out.
So, my solution is to accept as many connections as available and
call select() to determine which socket is ready for read, than do
the SSL handshake.
Thanks for help anyway.
Best regs...