Welcome to the Monastery | |
PerlMonks |
Re: Simple HTTP in under 100 linesby mattr (Curate) |
on Nov 13, 2001 at 20:00 UTC ( [id://125067]=note: print w/replies, xml ) | Need Help?? |
Interesting! Here's what I got..
- had trouble running it with -wT in line 1; was able to run it after cutting that out as you suggest, perl -wT perlsvr.pl perlsvrhome
- could not get -h to work (I think this and above mean my getopts or something is corrupt)
- does not close connection right away though kills child.
So I'm not so sure about the security side, although presumably perl's proof against buffer attacks, we are told. How about keeping a list of children and killing them after a certain amount of time just in case? I wanted to do a kill -HUP on it when I had made a lot of children processes, but it just died. The
In Section
Craft
|
|