File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
drivers/SmartThings/philips-hue/src Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,10 @@ local function connecting_action(source)
275
275
})
276
276
if err ~= nil then return nil , err end
277
277
278
+ -- Re-set timeout due to cosock not carrying timeout over in some Lua library versions
279
+ err = select (2 , source ._sock :settimeout (60 ))
280
+ if err ~= nil then return nil , err end
281
+
278
282
err = select (2 , source ._sock :dohandshake ())
279
283
if err ~= nil then return nil , err end
280
284
end
Original file line number Diff line number Diff line change @@ -460,6 +460,16 @@ function utils.labeled_socket_builder(label)
460
460
if not sock or err ~= nil then
461
461
return nil , (err and " SSL wrap error: " .. err ) or " Unexpected nil socket returned from ssl.wrap"
462
462
end
463
+ log .info (
464
+ string.format (
465
+ " %sSetting SSL socket timeout for Hue REST Connection" , label
466
+ )
467
+ )
468
+ -- Re-set timeout due to cosock not carrying timeout over in some Lua library versions
469
+ err = select (2 , sock :settimeout (60 ))
470
+ if err ~= nil then
471
+ return nil , " settimeout error: " .. err
472
+ end
463
473
log .info (
464
474
string.format (
465
475
" %sPerforming SSL handshake for for Hue REST Connection" , label
You can’t perform that action at this time.
0 commit comments