2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-27 20:34:52 +00:00

HttpUtils.pm: fix DNS timeout handling (Forum #119497)

git-svn-id: https://svn.fhem.de/fhem/trunk@23979 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-03-15 14:00:33 +00:00
parent 73dda72e4d
commit 3b3c62ad6f
2 changed files with 2 additions and 4 deletions

View File

@ -302,14 +302,13 @@ HttpUtils_gethostbyname($$$$)
$dh{dnsTo} = 0.25;
$dh{lSelectTs} = $selectTimestamp;
$dh{selectTimestamp} = $selectTimestamp;
sub
dnsQuery($)
{
my ($dh) = @_;
$dh->{dnsTo} *= 2 if($dh->{lSelectTs} != $dh->{selectTimestamp});
$dh->{lSelectTs} = $dh->{selectTimestamp};
$dh->{dnsTo} *= 2 if($dh->{lSelectTs} != $selectTimestamp);
$dh->{lSelectTs} = $selectTimestamp;
return HttpUtils_Err({ hash=>$dh, msg=>"DNS"})
if($dh->{dnsTo} > $dh->{origHash}->{timeout}/2);
my $ret = syswrite $dh->{conn}, $dh->{qry};

View File

@ -393,7 +393,6 @@ FW_getHelp(dev, fn)
var lang = $("body").attr("data-language");
var url = FW_root+"/docs/commandref_frame"+
(lang == "EN" ? "" : "_"+lang)+".html";
log(url);
$.ajax({
url:url, headers: { "cache-control": "no-cache" },
success: function(data, textStatus, req){