Merge pull request #473 from arvidn/bind-ssl-fix-1.1
fix issue in socket binding and back-port ssl test reliability fix
This commit is contained in:
commit
7d8566f694
|
@ -1982,6 +1982,11 @@ retry:
|
|||
|
||||
if (!ec && s.sock)
|
||||
{
|
||||
// update the listen_interface member with the
|
||||
// actual port we ended up listening on, so that the other
|
||||
// sockets can be bound to the same one
|
||||
m_listen_interface.port(s.external_port);
|
||||
|
||||
TORRENT_ASSERT(!m_abort);
|
||||
m_listen_sockets.push_back(s);
|
||||
|
||||
|
|
|
@ -209,6 +209,9 @@ void test_ssl(int test_idx, bool use_utp)
|
|||
ses2.status();
|
||||
}
|
||||
|
||||
wait_for_alert(ses1, torrent_finished_alert::alert_type, "ses1");
|
||||
wait_for_downloading(ses2, "ses2");
|
||||
|
||||
// connect the peers after setting the certificates
|
||||
int port = 0;
|
||||
if (test.use_ssl_ports)
|
||||
|
@ -219,7 +222,7 @@ void test_ssl(int test_idx, bool use_utp)
|
|||
else
|
||||
port = ses2.listen_port();
|
||||
|
||||
fprintf(stderr, "%s: ses1: connecting peer port: %d\n"
|
||||
fprintf(stderr, "\n\n%s: ses1: connecting peer port: %d\n\n\n"
|
||||
, time_now_string(), port);
|
||||
tor1.connect_peer(tcp::endpoint(address::from_string("127.0.0.1", ec)
|
||||
, port));
|
||||
|
|
Loading…
Reference in New Issue