[Box Backup-commit] [boxbackup/boxbackup] 899af9: Make IOStream::CopyStreamTo throw an exception on ...

GitHub noreply at github.com
Tue Oct 13 23:21:35 BST 2015


  Branch: refs/heads/s3_support_merge
  Home:   https://github.com/boxbackup/boxbackup
  Commit: 899af993bff637272415b68d52db128fabe68dc4
      https://github.com/boxbackup/boxbackup/commit/899af993bff637272415b68d52db128fabe68dc4
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2015-10-13 (Tue, 13 Oct 2015)

  Changed paths:
    M lib/common/CollectInBufferStream.cpp
    M lib/common/CommonException.txt
    M lib/common/IOStream.cpp
    M lib/common/IOStream.h

  Log Message:
  -----------
  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 mailing list