[Box Backup-commit] COMMIT r3465 - box/trunk/lib/server

subversion at boxbackup.org subversion at boxbackup.org
Sun Dec 21 13:26:29 GMT 2014


Author: chris
Date: 2014-12-21 13:26:29 +0000 (Sun, 21 Dec 2014)
New Revision: 3465

Modified:
   box/trunk/lib/server/SocketStream.h
Log:
Improve comment explaining SocketStream::PollTimeout function.


Modified: box/trunk/lib/server/SocketStream.h
===================================================================
--- box/trunk/lib/server/SocketStream.h	2014-12-15 23:32:31 UTC (rev 3464)
+++ box/trunk/lib/server/SocketStream.h	2014-12-21 13:26:29 UTC (rev 3465)
@@ -63,8 +63,10 @@
 	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)




More information about the Boxbackup-commit mailing list