perlchild has asked for the wisdom of the Perl Monks concerning the following question:
I have a perl soap server daemon that runs continuously but since I added SSL functionality the server will run for a while and then shuts down on its own. I have tried starting the server with the stdout and stderr redirected to a file but I get no output or errors.
The following is the code for the server:
Any help with this is greatly appreciated.
The following is the code for the server:
#!/usr/bin/perl -w use HTTP::Daemon::SSL; use HTTP::Status; use SOAP::Lite; use SOAP::Transport::HTTP; use XML::Simple; use TTPSubmit; # Make sure you have a certs/ directory with "server-cert.pem" # and "server-key.pem" in it before running this! my $daemon = new HTTP::Daemon::SSL SSL_key_file => '(takenout)server-key.pem', SSL_cert_file => '(takenout)server-cert.pem', LocalPort => 8080; my $soap = SOAP::Transport::HTTP::Server -> new ( ) -> dispatch_to('TTPSubmit'); print "Please contact me at: <URL:", $daemon->url, ">\n"; while (my $conn = $daemon->accept()) { while (my $request = $conn->get_request()) { $soap->request($request); $soap->handle(); my $response = $soap->response(); $conn->send_response($response); } $conn->close; undef($conn); }
Any help with this is greatly appreciated.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: SSL Soap Server daemon stopping
by Anonymous Monk on Aug 20, 2008 at 04:46 UTC | |
by perlchild (Acolyte) on Aug 21, 2008 at 12:17 UTC | |
by Anonymous Monk on Aug 23, 2008 at 07:30 UTC | |
Re: SSL Soap Server daemon stopping
by Eyck (Priest) on Aug 20, 2008 at 16:45 UTC | |
by perlchild (Acolyte) on Aug 21, 2008 at 12:23 UTC | |
by Eyck (Priest) on Aug 21, 2008 at 18:16 UTC | |
by perlchild (Acolyte) on Aug 24, 2008 at 22:17 UTC | |
by Eyck (Priest) on Nov 14, 2008 at 11:59 UTC | |
by Anonymous Monk on Aug 23, 2008 at 07:33 UTC | |
by perlchild (Acolyte) on Aug 24, 2008 at 22:14 UTC | |
by Anonymous Monk on Aug 25, 2008 at 01:42 UTC | |
| |
by perlchild (Acolyte) on Aug 23, 2008 at 12:49 UTC |
Back to
Seekers of Perl Wisdom