Closed GoogleCodeExporter closed 9 years ago
it appears that boost.asio on linux does not support async_read() and
async_write() on sockets from other threads than their io_service. so
unfortunately you cannot use > 0 network threads. It appears to work on macos,
but if it's a race condition that could just be a coincidence.
Original comment by arvid.no...@gmail.com
on 14 Feb 2014 at 9:15
It worked prior to patch http://sourceforge.net/p/libtorrent/code/9646/
Original comment by v.korkod...@gmail.com
on 14 Feb 2014 at 3:14
and you may notice the relevant parts of that patch:
+SET(network_threads, 1, &session_impl::update_network_threads),
+set.set_int(settings_pack::network_threads, 5);
+m_net_thread_pool.back()->set_num_threads(1);
Original comment by arvid.no...@gmail.com
on 15 Feb 2014 at 2:16
I've reverted those parts now.
Original comment by arvid.no...@gmail.com
on 15 Feb 2014 at 2:32
I've reverted only "+m_net_thread_pool.back()->set_num_threads(1);"
Segfault disappeared.
I use 2-4 network threads
Original comment by v.korkod...@gmail.com
on 15 Feb 2014 at 4:17
Original issue reported on code.google.com by
v.korkod...@gmail.com
on 14 Feb 2014 at 6:34