Jack Bates
2016-09-09 16:34:39 UTC
peer (216.58.193.113:80, Unknown) peer error [bittorrent] [libtorrent]: invalid redirection
The web seed responds with a 302 redirect to a URL that doesn't containthe path from the multi-file files list,
std::string path = info.orig_files().file_path(file_index);
size_t i = location.rfind(path);
if (i == std::string::npos)
{
t->remove_web_seed_conn(this, errors::invalid_redirection, op_bittorrent, 2);
Would you consider updates to handle this case,size_t i = location.rfind(path);
if (i == std::string::npos)
{
t->remove_web_seed_conn(this, errors::invalid_redirection, op_bittorrent, 2);
and how would you go about it?
// TODO: 2 create a mapping of file-index to redirection URLs. Use that to form
// URLs instead. Support to reconnect to a new server without destructing this
// peer_connection
[1]// URLs instead. Support to reconnect to a new server without destructing this
// peer_connection
http://storage.googleapis.com/parltorrent/2016/2016-07-28/25402/ERRE%20Meeting%20No.%2012.torrent
[2]
https://github.com/arvidn/libtorrent/blob/master/src/web_peer_connection.cpp#L595
------------------------------------------------------------------------------