summaryrefslogtreecommitdiff
path: root/lib/server
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-12-21 13:26:29 +0000
committerChris Wilson <chris+github@qwirx.com>2014-12-21 13:26:29 +0000
commit911e84ead888d2ba29f39baa27da7f35c505a8c7 (patch)
tree12fa90a4d176417f6bff26cdc39e0ac6e5bfa13f /lib/server
parentd024be641cebcddfe529bc64014863b3eadfd336 (diff)
Improve comment explaining SocketStream::PollTimeout function.
Diffstat (limited to 'lib/server')
-rw-r--r--lib/server/SocketStream.h6
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)