* fhandler.h (wait_return): Add overlapped_nullread.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Detect zero-byte
read as a special case.
(fhandler_base_overlapped::raw_read): Keep looping when zero-byte read detected
without EOF.
(fhandler_base_overlapped::raw_write): Quiet gcc warning by adding
overlapped_nullread to switch statement even though it will never actually be
hit.
This commit is contained in:
Christopher Faylor
2012-03-12 21:29:36 +00:00
parent 6c95669d23
commit 3617fc8859
3 changed files with 22 additions and 1 deletions

View File

@@ -629,6 +629,7 @@ protected:
overlapped_unknown = 0,
overlapped_success,
overlapped_nonblocking_no_data,
overlapped_nullread,
overlapped_error
};
bool io_pending;