Originally posted to main ActivePerl list. -----Original Message----- From: Kjirsten Koka Sent: Friday, October 06, 2000 1:14 PM To: '[EMAIL PROTECTED]' Subject: LWP::UserAgent returns "500 read timeout" in PerlScript Greetings, I have a PerlScript ASP script which sends an HTTP request to a remote machine using the LWP::UserAgent module. In production, we use https (using the Crypt-SSLeay ppm package from ActivePerl) A fair amount of the time, the LWP::UserAgent->request() method times out after 3 minutes (the predefined value for timeout in UserAgent.pm) and reports "500 read timeout" to the client. The rest of the time it works fine and behaves properly, with one exception described below. The developer whose server I talk to says that he sees the HTTP connection get established, but no data comes across for 3 minutes, then finally the data arrives, but my script has already timed out and closed the connection. It is as if NT does not always flush the socket, even though IO::Socket turns on autoflush explicitly. It does not seem to matter whether we send via http or https. It is intermittent and not readily reproducible (although the chances of it happening increase dramatically if giving a demo or having my boss watching over my shoulder!) If anybody has seen this or has any suggestions I would be most grateful. My environment details are as follows: - ActivePerl build: 518 (I know, its ancient! Should I upgrade?) - WinNT 4 - IIS 4 Occasionally the script will not even time out; instead IIS spews the entire contents of the ASP script and ends it with "error '80004005' Internal Error". From surfing MS Visual Studio library this error seems to be generally due to WinNT permissions problems, but I do not understand much about how sockets work in NT. Any insight on this would be greatly appreciated. The error occurs immediately after calling LWP::UserAgent->request(). Thanks, Kjirsten Koka Paperfly Corporation [EMAIL PROTECTED] _______________________________________________ Perl-Win32-Web mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
