From bc6811cca5c8da465bc08ef2918445f3ca2472bc Mon Sep 17 00:00:00 2001 From: markusbloch Date: Thu, 9 May 2013 14:39:42 +0000 Subject: [PATCH] reducing http response timeout to 4 seconds git-svn-id: https://svn.fhem.de/fhem/trunk@3165 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/71_YAMAHA_AVR.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm index 42411eb35..143ac1042 100755 --- a/fhem/FHEM/71_YAMAHA_AVR.pm +++ b/fhem/FHEM/71_YAMAHA_AVR.pm @@ -519,7 +519,7 @@ YAMAHA_AVR_SendCommand($$;$) # In case any URL changes must be made, this part is separated in this function". - $response = CustomGetFileFromURL(0, "http://".$address."/YamahaRemoteControl/ctrl", 10, "".$command, 0, ($hash->{helper}{AVAILABLE} ? $loglevel : 5)); + $response = CustomGetFileFromURL(0, "http://".$address."/YamahaRemoteControl/ctrl", 4, "".$command, 0, ($hash->{helper}{AVAILABLE} ? $loglevel : 5)); Log GetLogLevel($name, 5), "YAMAHA_AVR: got response for $name: $response" if(defined($response)); @@ -664,7 +664,7 @@ sub YAMAHA_AVR_getModel($) return undef; } - $response = GetFileFromURL("http://".$address.$desc_url); + $response = CustomGetFileFromURL(0, "http://".$address.$desc_url, 4, undef, 0, ($hash->{helper}{AVAILABLE} ? GetLogLevel($name, 3) : 5)); Log GetLogLevel($name, 3), "YAMAHA_AVR: could not get unit description from device $name. Please turn on the device or check for correct hostaddress!" if (not defined($response) and defined($hash->{helper}{AVAILABLE}) and $hash->{helper}{AVAILABLE} eq 1);