mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
reducing http response timeout to 4 seconds
git-svn-id: https://svn.fhem.de/fhem/trunk@3165 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1b67e05d40
commit
cc2d248b2f
@ -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, "<?xml version=\"1.0\" encoding=\"utf-8\"?>".$command, 0, ($hash->{helper}{AVAILABLE} ? $loglevel : 5));
|
||||
$response = CustomGetFileFromURL(0, "http://".$address."/YamahaRemoteControl/ctrl", 4, "<?xml version=\"1.0\" encoding=\"utf-8\"?>".$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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user