diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-12-21 13:26:29 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-12-21 13:26:29 +0000 |
commit | 911e84ead888d2ba29f39baa27da7f35c505a8c7 (patch) | |
tree | 12fa90a4d176417f6bff26cdc39e0ac6e5bfa13f /lib | |
parent | d024be641cebcddfe529bc64014863b3eadfd336 (diff) |
Improve comment explaining SocketStream::PollTimeout function.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/server/SocketStream.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/server/SocketStream.h b/lib/server/SocketStream.h index 66308c0d..0a62bb38 100644 --- a/lib/server/SocketStream.h +++ b/lib/server/SocketStream.h @@ -63,8 +63,10 @@ protected: void MarkAsWriteClosed() {mWriteClosed = true;} void CheckForMissingTimeout(int Timeout); - // Converts a timeout in box_time_t (microseconds) to a value used - // by the poll() syscall (milliseconds). + // Converts a timeout in milliseconds (or IOStream::TimeOutInfinite) + // into one that can be passed to poll() (also in milliseconds), also + // compensating for time elapsed since the wait should have started, + // if known. int PollTimeout(int timeout, box_time_t start_time) { if (timeout == IOStream::TimeOutInfinite) |