reach.sriharsha has asked for the wisdom of the Perl Monks concerning the following question:
my $daemon = SOAP::Transport::HTTP::Daemon -> new (LocalAddr => $DaemonIpAddr, Listen => 5, LocalPort => $DaemonPort, SSL_server => 1, Reuse => 1, SSL_use_cert => 1, SSL_key_file => $ServerKey, SSL_cert_file => $ServerCert); print "Contact SOAP server at ", $daemon->url, "\n"; while ( 1 ) { my $Client = $daemon->accept(); #my server gettting killed here handle_request($daemon,$Client); } sub handle_request { my ( $server , $client ) = @_; my $pid = fork(); waitpid(-1,WNOHANG); if ( $pid > 0 ) #parent { return; #parent } else #child { #here handle the request and send response. } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTPS server using SOAP::Lite and web browser
by Anonymous Monk on Mar 18, 2011 at 15:23 UTC |