Hi I'm experiencing a strange issue that I think could be related to OpenSSL, but I want to make sure..
In a simple explanation, I have a TWSocketServer which serves sockets on SSL. I have 1 client connected to it and I send video data through this socket to the client connected to my server. If I send data from two different threads (Video from 1 threads, and keep-alive messages from another thread), eventually the socket will stop sending data. This only happens if I try to send data from these two threads. This works fine with non-SSL socket (I'm just implementing SSL in our application), and it has always worked fine I found that when this problem is happening my_BIO_write always returns -1 on TryToSend from TCustomSslWSocket Count := my_BIO_write(FSslbio, Data, Len); I understand that ICS is thread safe when sending data because adding and removing data to send buffers are locked with critical sections.. but maybe OpenSSL does not like when we send data from two different threads? I think I can make a sample application to test this case. But does anyone has any clue? Thanks Eric -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be