Error 500 Ssl Read Timeout
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business
500 Ssl Read Timeout Perl
Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs 500 read timeout perl Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 500 SSL read timeout error in LWP perl up vote 0 down vote favorite I have a perl script which will post HTTP request to specified server URL (Say: http://some-ip/here_action_url ). My problem is, Sometimes I am getting the below error. Error: 500 SSL read timeout. Sample Code: my $ua = new LWP::UserAgent; $ua->timeout(30); my $res = $ua->post( $url, { 'data' => $my_data } ); if(! $res->is_success ) { # Error Logging print $res->status_line."\n"; } else { $response_content = $res->content; } I read about the error. Most of the documents are saying that it is because of the response delay in server side. I just want to confirm, whether this error is coming because of server response delay? (or) Can be the problem with my perl script? perl lwp-useragent share|improve this question asked Oct 16 '14 at 8:48 vara 228316 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote If you get a result some of the time, and the error at other times, then it looks like your code is working. If you alway get the 500 error, it indicates a connection problem. Would need to know more about the service you are trying to connect to, does it require certificates or other authentication (which may be needed for secure socket layer connection) share|improve this answer answered Oct 16 '14 at 10:23 Kim Ryan 3721210 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged perl lwp-useragent or ask your own question. asked 1 year ago viewed 1135 times active 1 year ago Related 0Using Perl LWP::UserAgent
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
NSXVirtual SAN vCenterFusionWorkstationvExpertVMware {code} CloudCredSubmit a Link Home > VMTN > VMware Developer > Forums > vSphere Management SDK > Discussions Please enter a title. You can not post a blank message. Please type your message and try again. 7 Replies Latest https://communities.vmware.com/thread/170675?start=0&tstart=0 reply: Jul 30, 2009 1:25 AM by writetonikhil Getting "SOAP request error" on all Perl API calls to VC piuhapofuhpaosf Sep 25, 2008 12:50 PM I'm using the http://computer-programming-forum.com/53-perl/bee16f7fe5d33b54.htm VI Perl Toolkit to query a number of VC's that we have. The code runs just fine for all but one of the VC's. However, on one, read timeout regardless of what API query I try, I get "SOAP request error - possibly a protocol issue: 500 Server closed connection without sending any data back". Again, this happens for any API query that I attempt. Things of note:1.) Initially the VMWare Infrastructure Web Access service was not turned on on the VC. I turned it 500 ssl read on. I can now access the "Web Access" links for the VC (localhost/ui) and I can browse the managed objects from a web browser using the link at localhost/mob. So it seems that the web services are working on the VC, at least locally. The problem seems to be accessing the web services from another machine.2.) The VC is remote (i.e. in another city). The network between them should be allowing traffic. I understand that it's certainly possible that the network is blocking traffic, and we're looking into that possibility. However, in the meantime, I'm wondering if anyone has any ideas of what might be going on here. I'm at a loss. I'm not terribly familiar with the VC software, but in the poking around I've done, things seem to be setup ok. The VC itself works just fine for the many hosts that are connected to it. The ONLY problem seems to be making queries to the web services - they just fail.3.) The conn
server takes more than 60 econds to respond, the script fails with the following error: SSL read timeout: at /opt/CTperl-5.8.4/lib/site_perl/5.8.4/Net/HTTP/Methods.pm line 226 Net::SSL::die_with_error('Net::HTTPS=GLOB(0x60000000000608a0)', 'SSL read timeout') called at /opt/CTperl-5.8.4/lib/site_perl/5.8.4/IA64.ARCHREV_0-LP64/Net/SSL.pm line 218 ... ... My invocation looks like this: Is there another means to set the SSL timeout? It would appear the 'timeout => 300' is not affecting the SSL component. Any help would be appreciated. Thanks, Kevin Fri, 20 Jul 2012 22:47:50 GMT C.DeRyku#2 / 6 SSL read timeout Quote:> Hi, > ? ? ? ? I have a perl script running to query a SOAP process, but using a basic > Net::HTTPS connection. If the server takes more than 60 econds to respond, the > script fails with the following error: > SSL read timeout: ?at /opt/CTperl-5.8.4/lib/site_perl/5.8.4/Net/HTTP/Methods.pm > line 226 Net::SSL::die_with_error('Net::HTTPS=GLOB(0x60000000000608a0)', 'SSL > read timeout') called at > /opt/CTperl-5.8.4/lib/site_perl/5.8.4/IA64.ARCHREV_0-LP64/Net/SSL.pm line 218 > ... > ... > My invocation looks like this: > Is there another means to set the SSL timeout? It would appear the 'timeout => > 300' is not affecting the SSL component. > Any help would be appreciated. You could wrap the constructor call in a die/eval block. See perldoc -f alarm Note however that Perl's safe signal handling could cause the alarm signal to be missed and the only workaround is to use POSIX sigaction() and revert to unsafe signals. See the "Interrupting IO" section in perlipc. -- Charles DeRykus Sat, 21 Jul 2012 02:38:05 GMT C.DeRyku#3 / 6 SSL read timeout Quote: > > Hi, > > ? ? ? ? I have a perl script running to query a SOAP process, but using a basic > > Net::HTTPS connection. If the server takes more than 60 econds to respond, the > > script fails with the following error: > > SSL read timeo