in reply to Re: Re: HTTP::Daemon aborting in send_status_line?
in thread HTTP::Daemon aborting in send_status_line?
Well, you can check the return value from print just like anything else:
print "hello there\n" or die "print failed: $!\n";
It's possible, though, that the print statement isn't failing, but is just blocking, waiting for the socket to become writable. Since this will never happen, it will wait forever.
Whether this is happening will depend on the state of the socket when send_status_line is entered, so you'll need to show us more code---ideally, the smallest amount of code that still exhibits the error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: HTTP::Daemon aborting in send_status_line?
by mifflin (Curate) on Apr 23, 2004 at 06:26 UTC | |
by bart (Canon) on Apr 23, 2004 at 08:44 UTC | |
by mifflin (Curate) on Apr 23, 2004 at 15:46 UTC |