Presumably you can use multiple threads for reading and writing as long
as you
ensure that they are not both calling an SSL function at the same time?

This is what I do.

Mark 

> -----Original Message-----
> 
> You cannot use different threads for reading and writing.  OpenSSL is
> thread-safe with the limitation that an SSL session cannot be used
> across multiple threads.  (It may possibly work for one, but multiple
> clients call into the library at different and odd times.)
> 
> http://www.openssl.org/support/faq.html#PROG1 has the information.
> 
> You must restructure your code so that the same thread does reading
> and writing.  This may possibly be done by creating an I/O queue for
> each connection, and using a single thread to write out information
> from the output queue across each connection and read information from
> the connection into the input queue.
> 
> -Kyle H
> 
> On Fri, Aug 29, 2008 at 1:39 AM, vinni rathore 
> <[EMAIL PROTECTED]> wrote:
> > Hello everyone,
> >
> > I am still facing the same segmentation error in 
> multithreaded server
> > using openssl APIs.
> > Everything is correct for single client ... but when 
> multiple clients
> > are used it gives segmentation problem
> > In my application there are different threads for read and write.
> >
> > Could anyone please suggest me what needed in case of multithreading
> > in terms of OpenSSL API's..
> > Better if anyone could send me some good urls or samples
> >
> > Waiting for reply..
> >
> > Thanx...
> >
> >
> > --
> > regards,
> > Vineeta Kumari
> > Software engg
> > Mobera Systems
> > Chandigarh
> > 
> ______________________________________________________________________
> > OpenSSL Project                                 
> http://www.openssl.org
> > User Support Mailing List                    
> openssl-users@openssl.org
> > Automated List Manager                           
> [EMAIL PROTECTED]
> >
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
> 
> 

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to