Hi,

I'm trying to optimize a sample server I've got going
in C++ on linux using OpenSSL 0.9.5a, but am having no luck.
For one thing, the executable increased by a factor of more than
10.  Even with the optimize flag in compilation.  Is this normal?

Here's the basic structure of my server:

SSL_library_init()
create new context
SSL_CTX_use_certificate_file()
SSL_CTX_use_PrivateKey_file()
SSL_CTX_check_private_key()
bind, listen, ...
SSL_new()
SSL_accept()
SSL_read/write()


This is running around 30% slower than a regular non-encrypting server,
but I can't find any consistency in the actual runtime.  This is if I run
x number of clients each sending and receiving huge chunks of data
(16k/32k).  However, if I run 2*x clients doing 1/2 the data each (but
total data remains the same), the time is greatly shortened.  Shouldn't it
be approximately the same time? Any particular reason why?

Also, any suggestions to optimize this to get it under 30%?  I've
tried reducing the key sizes in the files from 1024 to 512 bits.
Also, I tried different client/server methods: v2, v3, v23.  None 
of that helps.

Thanks,

Bhavin


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

Reply via email to