mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
FRITZBOX: Soap timeout
git-svn-id: https://svn.fhem.de/fhem/trunk@13696 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
469c27bced
commit
8dbc20a5ae
@ -369,6 +369,7 @@ sub FRITZBOX_Set($$@)
|
||||
elsif ( lc $cmd eq 'checkapis') {
|
||||
Log3 $name, 3, "FRITZBOX: set $name $cmd ".join(" ", @val);
|
||||
$hash->{APICHECKED} = 0;
|
||||
$hash->{fhem}{sidTime} = 0;
|
||||
$hash->{fhem}{LOCAL} = 1;
|
||||
FRITZBOX_Readout_Start($hash->{helper}{TimerReadout});
|
||||
$hash->{fhem}{LOCAL} = 0;
|
||||
@ -4233,7 +4234,7 @@ sub FRITZBOX_TR064_Cmd($$$)
|
||||
my $soap = SOAP::Lite
|
||||
-> on_fault ( sub {} )
|
||||
-> uri( "urn:dslforum-org:service:".$service )
|
||||
-> proxy('https://'.$host.":".$port."/upnp/control/".$control, ssl_opts => [ SSL_verify_mode => 0 ] )
|
||||
-> proxy('https://'.$host.":".$port."/upnp/control/".$control, ssl_opts => [ SSL_verify_mode => 0 ], timeout => 10 )
|
||||
-> readable(1);
|
||||
my $res = $soap -> call( $action => @soapParams );
|
||||
|
||||
@ -4396,7 +4397,7 @@ sub FRITZBOX_TR064_Init ($$)
|
||||
FRITZBOX_Log $hash, 4, "Open TR-064 connection and ask for security port";
|
||||
my $s = SOAP::Lite
|
||||
-> uri('urn:dslforum-org:service:DeviceInfo:1')
|
||||
-> proxy('http://'.$host.':49000/upnp/control/deviceinfo')
|
||||
-> proxy('http://'.$host.':49000/upnp/control/deviceinfo', timeout => 10 )
|
||||
-> getSecurityPort();
|
||||
|
||||
my $port = $s->result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user