summaryrefslogtreecommitdiff
path: root/lib/common/BufferedStream.cpp
Commit message (Collapse)AuthorAge
* Fix error in BufferedStream::StreamDataLeft.Chris Wilson2014-09-04
| | | | | | | | StreamDataLeft() incorrectly returned false when there was still data buffered, which made IOStream::CopyStreamTo stop copying early, resulting in incomplete files when copying data out of a BufferedStream. This meant that tests involving a local protocol, where a BufferedStream was copied directly to a RaidFile, resulted in corrupted files that would not verify.
* Fix deadlock waiting for read or write on closed connection.Chris Wilson2014-08-15
| | | | | | | | If the system is suspended then it may not realise that a TCP connection has been closed, while waiting for data to arrive on it. We didn't used to apply a timeout to this read operation. Now we use the connection's default timeout on all read and write operations. Network operations that don't pass a timeout will be logged with a backtrace, so that they can be fixed.
* Implement write buffering on directories.Chris Wilson2010-09-13
|
* Added a BufferedStream class that can be wrapped around an IOStream to Chris Wilson2007-01-17
improve read performance when many small reads will be performed, e.g. while reading directories and during housekeeping. (refs #3)