Skip to content
Permalink
Browse files

Talk: added request timeout (30s)

  • Loading branch information...
fvdm committed Sep 24, 2012
1 parent 0982bcf commit 7f252bcc6f9fef038296781f4bb75553af22af7a
Showing with 3 additions and 0 deletions.
  1. +3 −0 passdock.js
@@ -37,6 +37,7 @@ var app = {
api: {
host: 'api.passdock.com',
path: '/api/v1/',
timeout: 30,
token: ''
}
}
@@ -79,6 +80,8 @@ app.talk = function( method, path, fields, cb ) {
})
})

req.setTimeout( app.api.timeout * 60 )

if( method == 'GET' ) {
req.end()
} else {

0 comments on commit 7f252bc

Please sign in to comment.
You can’t perform that action at this time.