[Box Backup-commit] [boxbackup/boxbackup] 899af9: Make IOStream::CopyStreamTo throw an exception on ...
noreply at github.com
Tue Oct 13 23:21:35 BST 2015
Author: Chris Wilson <chris+github at qwirx.com>
Date: 2015-10-13 (Tue, 13 Oct 2015)
Make IOStream::CopyStreamTo throw an exception on network timeout.
This is safer than returning false, which isn't checked in many places, and
allows us to return the number of bytes copied instead.
Add an assertion to CollectInBufferStream to ensure that we don't try to
write a negative number of bytes.
More information about the Boxbackup-commit