On Fri, Oct 23, 2009 at 08:50:38AM -0700, Jason Pettiss wrote: > However, it's clearly alright to read a socket from one thread while > writing a socket from another: indeed, this is the purpose of a socket. > That OpenSSL doesn't allow this usage seems like a limitation of the > library. (Although maybe it's actually of the TLS protocol itself...?)
SSL is a state-machine, not a pipe. Reading data may require writes, and writing data may require reads (e.g. when re-negotiating). If you want to write and read as data arrives in either direction, don't block, and enter the state machine to move data in either direction as data arrives. -- Viktor. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org