Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, and if you set the deadline on the client, the server knows (subject to its time skew) when the request needs to finish. With a timeout, you have to factor in latency, which is necessarily error prone.

Basically, deadline is a context-free timeout.



... unless, of course, it's on the wall clock scale, in which case changing machine time will invalidate all your deadlines. Just need to be careful to use something like 'ticks from the last boot' rather than UTC time.


In competently run environments, wall clock changes are smeared. :) there is no way to use ticks since last boot, since the server will have a different value from the client.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: