I'm using the perl Rest::Client module and have an occasional issue that I cant figure out.
We create the 'client' and connect to the remote server and pull down some data using the "GET" feature.
my $client = REST::Client->new();my $headers = (headers set here);$client->GET('serverurlhere', $headers);$json = $client->responseContent();
What's happening is; sometimes the remote server takes a while to compile the data we requested, and it seems to timeout. However, no error is produced on my end (no error 500 etc) it just drops the connection and no data is present. It takes about 5 minutes for this to happen, which made me think it was the timeout on our end, but if I force the timeout up to 15 minutes using "$client->setTimeout(900)", it still drops in 5 minutes.
Is that method of setting timeout not valid? I got it from the metacpan doc. Is there some reason I am not seeing an error even with strict/warnings enabled? Is there another workaround for making sure it doesnt drop early?