The program does not hang (block) on the print statement, it stops at it (dies without raising an exception).Perhaps you're getting a "broken pipe" exception. Quote from Lincoln Stein's book "Network Programming in Perl":
The PIPE signal is sent when a program writes to a pipe or socket but the process at the remote end has either exited or closed the pipe.
Try setting a $SIG{PIPE} handler to an error reporting sub.
In reply to Re(5): HTTP::Daemon aborting in send_status_line?
by bart
in thread HTTP::Daemon aborting in send_status_line?
by mifflin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |