1 parent
9fde3ad5d5
commit
68b6a786bf
2 files changed
+2
-1
No files matched your search
@@ -84,7 +84,7 @@ connectionRequest = (deviceId, callback) ->
|
|||||||
)
|
)
|
||||||
|
|
||||||
request.on('socket', (socket) ->
|
request.on('socket', (socket) ->
|
||||||
socket.setTimeout(2000)
|
socket.setTimeout(config.get('CONNECTION_REQUEST_TIMEOUT', deviceId))
|
||||||
socket.on('timeout', () ->
|
socket.on('timeout', () ->
|
||||||
request.abort()
|
request.abort()
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ options = {
|
|||||||
GET_PARAMETER_NAMES_DEPTH_THRESHOLD : {type : 'int', default : 0},
|
GET_PARAMETER_NAMES_DEPTH_THRESHOLD : {type : 'int', default : 0},
|
||||||
TASK_PARAMETERS_BATCH_SIZE : {type : 'int', default : 32},
|
TASK_PARAMETERS_BATCH_SIZE : {type : 'int', default : 32},
|
||||||
COOKIES_PATH : {type : 'string'},
|
COOKIES_PATH : {type : 'string'},
|
||||||
|
CONNECTION_REQUEST_TIMEOUT : {type : 'int', default : 2000},
|
||||||
|
|
||||||
# Libxml related configuration
|
# Libxml related configuration
|
||||||
XML_PARSE_RECOVER : {type : 'bool'},
|
XML_PARSE_RECOVER : {type : 'bool'},
|
||||||
|
|||||||
Reference in new issue
Block a user