Re: [libtorrent] "fastresume_rejected_alert" of big file, is it bug?
Brought to you by:
arvidn
From: linxs <li...@12...> - 2017-05-17 01:21:15
|
vs2013, source code version 1_1_1, boost version 1.62.0. in this case,"ec.assign(GetLastError(), system_category());", GetLastError() return 2. i trace into "if (ec && ec != boost::system::errc::no_such_file_or_directory)", "boost::system::errc::no_such_file_or_directory" return an error_code object with its "m_val"=2, too. so the term fail and is passed. At 2017-05-17 08:53:37, "Arvid Norberg" <arv...@gm...> wrote: >On Tue, May 16, 2017 at 8:45 PM, linxs <li...@12...> wrote: > >> >> in file.cpp stat_file() function, because the target file is not exist, >> CreateFile or ::stat will fail and "ec.assign(errno, system_category());". >> this kind of error is not checked in version 1_1_1. but version 1_1_3 >> fixed this bug here. >> i have not confirm yet in version 1_1_3 anywhere stat_file is called the >> return value is deal with. >> > >The code you posted, where the error is checked like this: > >if (ec && ec != boost::system::errc::no_such_file_or_directory) > >That's essentially checking for errno == ENOENT (and system_category()). >So, my question was, what error code do you get? what was errno set to? >The code checks for ENOENT as far as I can tell, so I'm assuming it's some >other error. > >-- >Arvid Norberg >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Libtorrent-discuss mailing list >Lib...@li... >https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss |