fixed web seed test to work with invariant checks turned on and fixed error reporting when receiving an unexpected responce for http seeds

This commit is contained in:
Arvid Norberg
2010-10-30 19:45:50 +00:00
parent a76570b563
commit 0773644a4e
5 changed files with 19 additions and 8 deletions

View File

@@ -869,12 +869,12 @@ void web_server_thread(int* port, bool ssl, bool chunked)
else
{
range_start = 0;
// assume piece size of 16
range_end = 16-1;
// assume piece size of 64kiB
range_end = 64*1024-1;
}
int size = range_end - range_start + 1;
boost::uint64_t off = idx * 16 + range_start;
boost::uint64_t off = idx * 64 * 1024 + range_start;
std::vector<char> file_buf;
int res = load_file("./tmp1_web_seed/seed", file_buf);