On Fri, Jun 04, 2004 at 11:00:01AM +0200, Jochen Eisinger wrote:
> Hello,
> 
> I have the following problem I didn't find a solution for:
> 
> A process establishes a SSL connection. Now the process forks from time
> to time a worker child that uses this connection. This works the first
> time, every other time the child can't use the SSL connection.
> 
> I guess this is because the first forked child modifies the state of the
> SSL connection when using it, and since the modified state is not passed
> back to the parent, the parent (and all the later forked childs) cannot
> reuse the SSL connection.
> 
> My question is now: is this guess correct, and if yes, how can I pass
> the updated SSL connection back to the parent?

You are probably out of luck with your model. If at all possible you
should move the SSL layer to a separate process or have the parent
handle the SSL traffic for the child processes.
If you process is a SSL client and the server does support session
reuse, you could have your child processes establish independant
connections with the same session data, thus saving the expensive
handshake with authentication.

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
http://www.aet.TU-Cottbus.DE/personen/jaenicke/
BTU Cottbus, Allgemeine Elektrotechnik
Universitaetsplatz 3-4, D-03044 Cottbus
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to