For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > September 2007 > fork processs with ssl connection









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author fork processs with ssl connection
emannion@gmail.com

2007-09-14, 7:08 pm

Hi,

I have a process that forks 5 child processes. Before the parent
process forks the five children, it creates an ssl connection to a
remote web server. after the forking takes place will there be six ssl
connections or will all the children use the same ssl connection to
the server to make the soap requests. I presume each child will
inherit the same ssl handle as the parent ownes?


Can Anyone advise me of potential issues in this implementation? I
will be using openSSL and gsoap.

Thanks,
Enda

Gianni Mariani

2007-09-14, 7:08 pm

emannion@gmail.com wrote:
> Hi,
>
> I have a process that forks 5 child processes. Before the parent
> process forks the five children, it creates an ssl connection to a
> remote web server. after the forking takes place will there be six ssl
> connections or will all the children use the same ssl connection to
> the server to make the soap requests. I presume each child will
> inherit the same ssl handle as the parent ownes?


They all share the same handle.

> Can Anyone advise me of potential issues in this implementation? I
> will be using openSSL and gsoap.


It would be safe to say that only one process will be able to use the
ssl handle. I don't know what openssl does to clean up a connection but
if you were to close connections in a forked process you would need to
make sure that no data was read or written before it is closed - that's
an implementation of openssl+gsoap issue.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com