diff --git a/test/dht_server.cpp b/test/dht_server.cpp index 42ae9f738..95f7e0622 100644 --- a/test/dht_server.cpp +++ b/test/dht_server.cpp @@ -117,7 +117,7 @@ struct dht_server , boost::bind(&incoming_packet, _1, _2, &bytes_transferred, &ec, &done)); while (!done) { - m_ios.poll_one(); + m_ios.run_one(); m_ios.reset(); } diff --git a/test/peer_server.cpp b/test/peer_server.cpp index 0e3e2e809..047cf7b2f 100644 --- a/test/peer_server.cpp +++ b/test/peer_server.cpp @@ -119,7 +119,7 @@ struct peer_server m_acceptor.async_accept(socket, from, boost::bind(&new_connection, _1, &ec, &done)); while (!done) { - m_ios.poll_one(); + m_ios.run_one(); m_ios.reset(); } diff --git a/test/test_privacy.cpp b/test/test_privacy.cpp index 4920ae914..8bc64d275 100644 --- a/test/test_privacy.cpp +++ b/test/test_privacy.cpp @@ -135,6 +135,7 @@ void test_proxy(proxy_settings::proxy_type proxy_type, int flags) addp.dht_nodes.push_back(std::pair("127.0.0.1", dht_port)); torrent_handle h = s->add_torrent(addp); + printf("connect_peer: 127.0.0.1:%d\n", peer_port); h.connect_peer(tcp::endpoint(address_v4::from_string("127.0.0.1"), peer_port)); rejected_trackers.clear();