fix possible hang in file::readv() on windows

This commit is contained in:
Arvid Norberg 2011-09-15 09:43:29 +00:00
parent 6271ee58f6
commit 8e6c159c83
2 changed files with 2 additions and 1 deletions

View File

@ -91,6 +91,7 @@
incoming connection
* added more detailed instrumentation of the disk I/O thread
* fix possible hang in file::readv() on windows
* fix CPU busy loop issue in tracker announce logic
* honor IOV_MAX when using writev and readv
* don't post 'operation aborted' UDP errors when changing listen port

View File

@ -1153,7 +1153,7 @@ namespace libtorrent
if (ReadFileScatter(m_file_handle, segment_array, size, 0, &ol) == 0)
{
DWORD last_error = GetLastError();
if (last_error != ERROR_IO_PENDING && last_error != ERROR_HANDLE_EOF)
if (last_error != ERROR_IO_PENDING)
{
ec.assign(GetLastError(), get_system_category());
CloseHandle(ol.hEvent);