0rpc / zerorpc-node

zerorpc for node.js
http://www.zerorpc.io
Other
705 stars 167 forks source link

Millisecond-resolution timeouts #89

Closed maxcountryman closed 7 years ago

maxcountryman commented 7 years ago

I'm curious if there's a reason timeouts cannot be in rendered in millisecond resolution?

My use-case is an application where latency is key concern (we're aiming for sub-millisecond response times) and we would much rather timeout than wait for a slow response.

bombela commented 7 years ago

timeouts are floating point seconds. you do have millisecond resolution. 0.1 should give you a 100ms timeout for example.

maxcountryman commented 7 years ago

Thank you.