fixed bugs reported by Massaroddel. Tracker request peer-count could be incorrect. Empty files were not created in full allocation mode.
This commit is contained in:
@@ -212,6 +212,11 @@ namespace libtorrent
|
||||
assert(m_open_mode & mode_out);
|
||||
assert(m_fd != -1);
|
||||
|
||||
// Test this a bit more, what happens with random failures in
|
||||
// the files?
|
||||
// if ((rand() % 100) > 80)
|
||||
// throw file_error("debug");
|
||||
|
||||
size_type ret = ::write(m_fd, buf, num_bytes);
|
||||
if (ret == -1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user