apearson / insteon-plm

Insteon PLM is a TypeScript/JavaScript library for the Insteon PowerLinc Modem family of devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need to timeout requests

apearson opened this issue · comments

Requests should not be allowed to take forever

This pattern might work: caolan/async#247 (comment)
Nevermind - I think this only works for items which are pending processing.

So each task in the async queue would become a race between the insteon command and a timeout timer?

Correct

Commits:
ceaaabb
c294d62

Should implement timeouts for the modem and Insteon devices