I have fixed the problem of messages crossing threads but now the ssl server falls over with an UnkwonSocketError.

Everything seems to work fine if I don't try to do the ssl encryption handshake. I am using default configured ssl sockets. Do they need to be properly configured beforehand ?

Cheers,
Pascal.