[Box Backup-dev] COMMIT r646 - box/chris/general/lib/server

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Wed, 19 Jul 2006 00:47:41 +0000 (GMT)


Author: chris
Date: 2006-07-19 00:47:38 +0000 (Wed, 19 Jul 2006)
New Revision: 646

Modified:
   box/chris/general/lib/server/WinNamedPipeStream.cpp
Log:
* WinNamedPipeStream.cpp
- Reset byte count in buffer to zero when buffer is closed, otherwise
  is might start a new connection full of old junk.


Modified: box/chris/general/lib/server/WinNamedPipeStream.cpp
===================================================================
--- box/chris/general/lib/server/WinNamedPipeStream.cpp	2006-07-19 00:46:38 UTC (rev 645)
+++ box/chris/general/lib/server/WinNamedPipeStream.cpp	2006-07-19 00:47:38 UTC (rev 646)
@@ -107,6 +107,7 @@
 		THROW_EXCEPTION(ServerException, SocketOpenError)
 	}
 	
+	mBytesInBuffer = 0;
 	mReadClosed  = false;
 	mWriteClosed = false;
 	mIsServer    = true; // must flush and disconnect before closing