Excuse me if this has already been posted but I couldn't find anything
in the mail archives. So here it goes.
I need to collect statistics from a bunch of client machines spread
geographically. The # of client machines could get large (almost 10
clients uploading data every sec) and the data needs to be transfered
securely. We are planning to use client certificates to authenticate
clients. I am looking for ideas to accomplish this.
One idea is to write a multi-threaded SSL server where each thread
handles a different connection and stores the data passed over by the
client. Whether one server is sufficient depends on the time taken to
establish an SSL session and transfer the data. The data size is about
10K and so it seems like the SSL connection time would be a bottleneck.
In order to scale I was also thinking of load balancing. The simples
would be a DNS round-robin.
Q) Can anyone share code to write such a multithreaded server using
pthreads on linux?
Q) How do I interpret the output from s_time option on openssl. What
I get is
299 connections in 12.03s; 24.85 connections/user sec, bytes read 0
299 connections in 31 real seconds, 0 bytes read per connection
Q) The s_server.c and s_client.c code examples seem a little too
involved for opening an SSL socket. Are there any C++ wrappers for doing
this?
Thanks in advance
-- Ravi.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]