forked from premiere/premiere-libtorrent
fix possible hang in file::readv() on windows
This commit is contained in:
parent
6271ee58f6
commit
8e6c159c83
|
@ -91,6 +91,7 @@
|
||||||
incoming connection
|
incoming connection
|
||||||
* added more detailed instrumentation of the disk I/O thread
|
* 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
|
* fix CPU busy loop issue in tracker announce logic
|
||||||
* honor IOV_MAX when using writev and readv
|
* honor IOV_MAX when using writev and readv
|
||||||
* don't post 'operation aborted' UDP errors when changing listen port
|
* don't post 'operation aborted' UDP errors when changing listen port
|
||||||
|
|
|
@ -1153,7 +1153,7 @@ namespace libtorrent
|
||||||
if (ReadFileScatter(m_file_handle, segment_array, size, 0, &ol) == 0)
|
if (ReadFileScatter(m_file_handle, segment_array, size, 0, &ol) == 0)
|
||||||
{
|
{
|
||||||
DWORD last_error = GetLastError();
|
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());
|
ec.assign(GetLastError(), get_system_category());
|
||||||
CloseHandle(ol.hEvent);
|
CloseHandle(ol.hEvent);
|
||||||
|
|
Loading…
Reference in New Issue