Skip to content

Commit ec39181

Browse files
committed
Enforce a default timeout of 20000 msecs to cleanup if client is connected but server does not send a response.
1 parent ae1fba0 commit ec39181

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,7 @@ History
6363

6464
* 20150508, V0.0.7
6565
* Fixed request error handling. Request must be aborted if error has occurred
66-
* Added option to set a request timeout
66+
* Added option to set a request timeout
67+
68+
* 20150511, V0.0.8
69+
* Enforce a default timeout of 20000 msecs to cleanup if client is connected but server does not send a response.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function assignDefaultCommandOptions(options) {
2929

3030
function postRequest(command, options) {
3131
var requestOptions = _.assign({
32-
timeout: 0,
32+
timeout: 20000,
3333
port: 10000,
3434
path: 'smartplug.cgi',
3535
method: 'POST',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "edimax-smartplug",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "Node module to communicate with Edimax Smart Plugs",
55
"author": {
66
"name": "Marcus Wittig",

0 commit comments

Comments
 (0)