500 Server error on Solaris 10

Chris Boyce <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
Hello...

We have been using LWP::UserAgent for about four years (to power a web
site monitoring script), without any problems.  The script runs directly
on each web server, querying itself.  However, we have just started
using Solaris 10 for the first time, and suddenly our monitoring script
is getting this error at random times:

500 Server closed connection without sending any data back

We are using Solaris 10, SPARC, and the following modules as required by
our lwp script:

Time-HiRes-1.74
URI-1.35
HTML-Parser-3.45
libnet-1.19
libwww-perl-5.803
(we've tried both perl 5.8.7 and 5.8.8)

The code that makes the request looks like this:


# Run the request...
$http_response = $agent->request($request);

$content = $http_response->content;
$status_line = $http_response->status_line;


Our Use section is:

use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Headers;
use HTTP::Request;
use HTTP::Response;
use Net::SMTP;
use Getopt::Long;
use Time::Local;
use Time::HiRes 'time','sleep';


I have tried using the same script on another machine, and direct
requests to the failing machine's web server.  This works fine.  All
other servers are Solaris 8 or 9.  This machine is running 10.  Can
anyone think of a reason why LWP would be receiving an empty response
when running on our Solaris 10 server?  

Your ideas are very much appreciated.  As I said, we've never had a
problem with LWP (or this script) in the 4 years we've used it on
Solaris 8 and 9.

thanks

-Chris


-- 
Chris Boyce
Systems Engineer, RHCE
Berbee
5520 Research Park Drive, Madison WI  53711
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.