You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to this: http://nodejs.org/api/http.html#http_request_settimeout_timeout_callback
http sockets are automatically closed after 120 seconds of inactivity by default, how is it possible to send an http RPC request throught jayson with any desired timeout (more than 120 seconds of course)
I used:
this.rpcClient = jayson.client.http({
port: port,
hostname: ip
});
707c714 sees too it that http requests that timeout automatically abort. So you will get an error when this happens. See the added test in the referred commit for a working example quite similar to your own.
According to this: http://nodejs.org/api/http.html#http_request_settimeout_timeout_callback
http sockets are automatically closed after 120 seconds of inactivity by default, how is it possible to send an http RPC request throught jayson with any desired timeout (more than 120 seconds of course)
I used:
this.rpcClient = jayson.client.http({
port: port,
hostname: ip
});
this.rpcClient.on('http request', function(req){
req.setTimeout(VALUE) ;
});
but did not work for me
The text was updated successfully, but these errors were encountered: