Re: Server handling Multiple clients....!!!!

2008-08-20 Thread Kyle Hamilton
To follow up my previous quoting of the FAQ: You create the SSL_CTX with SSL_CTX_new(), listen() on the appropriate port, then accept() the connection, which gives you a file descriptor. Spawn a thread to handle that descriptor. Use SSL_new(SSL_CTX *) to generate a new SSL structure, and then us

RE: Server handling Multiple clients....!!!!

2008-08-20 Thread Ambarish Mitra
Hello everyone, I am working with a VPN server and using openssl APIs to handle SSL on Linux machine. My server work fine with single client but it shows the segmentation fault when i test it with multiple clients. **Which OS? Which thread library? pthread/Solaris thread/Win Thread etc? If t

Re: Server handling Multiple clients....!!!!

2008-08-20 Thread Kyle Hamilton
You cannot share a single SSL connection across multiple threads (i.e., your reader and writer must be in the same thread). This is documented at http://www.openssl.org/support/faq.html#PROG1 thus: 1. Is OpenSSL thread-safe? Yes (with limitations: an SSL connection may not concurrently be used b

Server handling Multiple clients....!!!!

2008-08-20 Thread vinni rathore
Hello everyone, I am working with a VPN server and using openssl APIs to handle SSL on Linux machine. My server work fine with single client but it shows the segmentation fault when i test it with multiple clients. I have different threads in my server handling different functionalities. Read and