summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/server/SocketStream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/server/SocketStream.h b/lib/server/SocketStream.h
index 8b5e322d..66308c0d 100644
--- a/lib/server/SocketStream.h
+++ b/lib/server/SocketStream.h
@@ -63,6 +63,8 @@ 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).
int PollTimeout(int timeout, box_time_t start_time)
{
if (timeout == IOStream::TimeOutInfinite)