merged fixes from RC_0_16
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
* fix uTP edge case where udp socket buffer fills up
|
* fix uTP edge case where udp socket buffer fills up
|
||||||
* fix nagle implementation in uTP
|
* fix nagle implementation in uTP
|
||||||
|
|
||||||
|
* python binding fix issue where torrent_info objects where destructing when their torrents were deleted
|
||||||
* added missing field to scrape_failed_alert in python bindings
|
* added missing field to scrape_failed_alert in python bindings
|
||||||
* GCC 4.8 fix
|
* GCC 4.8 fix
|
||||||
* fix proxy failure semantics with regards to anonymous mode
|
* fix proxy failure semantics with regards to anonymous mode
|
||||||
|
@@ -300,6 +300,11 @@ namespace
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boost::intrusive_ptr<const torrent_info> get_torrent_info(torrent_handle const& h)
|
||||||
|
{
|
||||||
|
return boost::intrusive_ptr<const torrent_info>(&h.get_torrent_info());
|
||||||
|
}
|
||||||
|
|
||||||
void force_reannounce(torrent_handle& th, int s)
|
void force_reannounce(torrent_handle& th, int s)
|
||||||
{
|
{
|
||||||
th.force_reannounce(boost::posix_time::seconds(s));
|
th.force_reannounce(boost::posix_time::seconds(s));
|
||||||
@@ -371,7 +376,7 @@ void bind_torrent_handle()
|
|||||||
.def("add_http_seed", _(&torrent_handle::add_http_seed))
|
.def("add_http_seed", _(&torrent_handle::add_http_seed))
|
||||||
.def("remove_http_seed", _(&torrent_handle::remove_http_seed))
|
.def("remove_http_seed", _(&torrent_handle::remove_http_seed))
|
||||||
.def("http_seeds", http_seeds)
|
.def("http_seeds", http_seeds)
|
||||||
.def("get_torrent_info", _(&torrent_handle::get_torrent_info), return_internal_reference<>())
|
.def("get_torrent_info", get_torrent_info)
|
||||||
.def("set_metadata", set_metadata)
|
.def("set_metadata", set_metadata)
|
||||||
.def("is_valid", _(&torrent_handle::is_valid))
|
.def("is_valid", _(&torrent_handle::is_valid))
|
||||||
.def("pause", _(&torrent_handle::pause), arg("flags") = 0)
|
.def("pause", _(&torrent_handle::pause), arg("flags") = 0)
|
||||||
|
@@ -123,7 +123,7 @@ namespace libtorrent
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
sha1_hash const& info_hash() const
|
sha1_hash const& info_hash() const
|
||||||
{ return m_torrent_file->info_hash(); }
|
{ return m_torrent_file ? m_torrent_file->info_hash() : sha1_hash(); }
|
||||||
|
|
||||||
// starts the announce timer
|
// starts the announce timer
|
||||||
void start();
|
void start();
|
||||||
|
Reference in New Issue
Block a user