Hi Angus Thanks for the reply. This is indeed a strange problem, because there's no deadlock or locking problem, and the problem does not happen in a deterministic way.. its kind of random, so I have to keep it running for a few seconds or minutes, then it will stop, maybe when a certain condition / workflow is met
I'm currently using OpenSSL 1.0.2h and I tried with latest ICS I downloaded yesterday (8.53) Maybe I should update my OpenSSL library for testing? I will update it, if it still happen I will try to make a demo program that can simulate this issue.. This is beyond my pay grade.. I don't have any experience with OpenSSL Thanks Eric On Wed, Oct 3, 2018 at 3:25 AM Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk> wrote: > > 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? > > OpenSSL is thread safe, or at least has been in the past, I've tested > an FTP application sending hundreds of SSL sessions each using a > separate thread. > > But OpenSSL has changed a lot in the last two years, there is a ICS > unit OverbyteIcsSslThrdLock which used to provide OpenSSL with thread > locking for 1.0.2 and earlier, but is no longer used for 1.1.0 and > later since OpenSSL does locking internally. > > I've not tested heavy thread use for a while, since it is rarely > necessary with ICS, it just complicates applications and introduces > problems. > > Which OpenSSL and ICS versions are you using? > > Angus > > > > > -- > 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 > -- 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