[cgiapp] CGI::App-based code and web servers

2009-08-21 Thread Ron Savage
Hi Folks

I've had an email asking if I could somehow let one of my modules use
HTTP::Server::Simple where the user didn't want to, or couldn't, set up
a stand-alone web server such as Apache.

Then I got to thinking: What are the alternatives to
HTTP::Server::Simple?

And, what do people feel about these modules?

TIA.

-- 
Ron Savage
r...@savage.net.au
http://savage.net.au/index.html



#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] CGI::App-based code and web servers

2009-08-21 Thread George Hartzell
Ron Savage writes:
  Hi Folks
  
  I've had an email asking if I could somehow let one of my modules use
  HTTP::Server::Simple where the user didn't want to, or couldn't, set up
  a stand-alone web server such as Apache.
  
  Then I got to thinking: What are the alternatives to
  HTTP::Server::Simple?
  
  And, what do people feel about these modules?

Well, H::T::S is the basis for these stand alone servers:

  http://search.cpan.org/dist/CGI-Application-Server/

  http://search.cpan.org/~markstos/CGI-Application-Dispatch-Server-0.52/

(I think that all of the functionality of CADS has been rolled into
 CAS and that CADS is EOL (phew...)).

I use them for development and simple stuff.

They have the same persistence issues/features that you see with
mod_perl/fastcgi (you garbage doesn't miraculously disappear at the
end of each request when the cgi script exits) but they work fine.

g.

#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] CGI::App-based code and web servers

2009-08-21 Thread Michael Peters

Ron Savage wrote:


And, what do people feel about these modules?


Smolder uses H::S::S (via CGI::Application::Server) and it worked great for 
development but when it was deployed it would just hang several times during the 
day. So I needed to restart it all the time.


Smolder now uses H::S::S + Net::Server::Prefork which not only performs better 
but also seems to be more stable (but I did receive a report of it crashing 
after about a week of running).


So if you go this route, definitely use N::S::P with it, but don't expect the 
stability or performance of what you'd get from Apache. The big benefit though 
is that they are Perl and can be installed from CPAN, which means that now 
Smolder can be installed from CPAN.


--
Michael Peters
Plus Three, LP


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] CGI::App-based code and web servers

2009-08-21 Thread George Hartzell
Michael Peters writes:
  Ron Savage wrote:
  
   And, what do people feel about these modules?
  
  Smolder uses H::S::S (via CGI::Application::Server) and it worked great for 
  development but when it was deployed it would just hang several times during 
  the 
  day. So I needed to restart it all the time.
  
  Smolder now uses H::S::S + Net::Server::Prefork which not only performs 
  better 
  but also seems to be more stable (but I did receive a report of it crashing 
  after about a week of running).
  [...]

When you use H::S::S + N::S::P, are you still using C::A::S on top of
them, or is there something else in the mix?

g.


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] CGI::App-based code and web servers

2009-08-21 Thread Michael Peters

George Hartzell wrote:


When you use H::S::S + N::S::P, are you still using C::A::S on top of
them, or is there something else in the mix?


Not for Smolder, it just used C::A::S (which is a H::S::S subclass) and then we 
have


  sub net_server { 'Net::Server::PreFork' }

--
Michael Peters
Plus Three, LP


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] CGI::App-based code and web servers

2009-08-21 Thread Ron Savage
Hi Folks

On Fri, 2009-08-21 at 08:11 -0700, George Hartzell wrote:

Thanx for the comments.

I was wondering if Net::Server::Prefork would enter the mix...

-- 
Ron Savage
r...@savage.net.au
http://savage.net.au/index.html



#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####