improve robustness of test_privacy and error messages of test_fast_extension
This commit is contained in:
parent
671ae32ae5
commit
c4b2682599
|
@ -52,7 +52,8 @@ int read_message(stream_socket& s, char* buffer)
|
||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
std::cout << time_now_string() << ": " << ec.message() << std::endl;
|
std::cout << time_now_string() << ": " << ec.message() << std::endl;
|
||||||
exit(1);
|
TEST_ERROR("read_message: " + ec.message());
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
char* ptr = buffer;
|
char* ptr = buffer;
|
||||||
int length = read_int32(ptr);
|
int length = read_int32(ptr);
|
||||||
|
@ -62,7 +63,8 @@ int read_message(stream_socket& s, char* buffer)
|
||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
std::cout << time_now_string() << ": " << ec.message() << std::endl;
|
std::cout << time_now_string() << ": " << ec.message() << std::endl;
|
||||||
exit(1);
|
TEST_ERROR("read_message: " + ec.message());
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,6 +104,8 @@ session_proxy test_proxy(settings_pack::proxy_type_t proxy_type, int flags)
|
||||||
sett.set_bool(settings_pack::announce_to_all_tiers, true);
|
sett.set_bool(settings_pack::announce_to_all_tiers, true);
|
||||||
sett.set_bool(settings_pack::force_proxy, flags & force_proxy_mode);
|
sett.set_bool(settings_pack::force_proxy, flags & force_proxy_mode);
|
||||||
sett.set_int(settings_pack::alert_mask, alert_mask);
|
sett.set_int(settings_pack::alert_mask, alert_mask);
|
||||||
|
sett.set_bool(settings_pack::enable_upnp, false);
|
||||||
|
sett.set_bool(settings_pack::enable_natpmp, false);
|
||||||
|
|
||||||
// since multiple sessions may exist simultaneously (because of the
|
// since multiple sessions may exist simultaneously (because of the
|
||||||
// pipelining of the tests) they actually need to use different ports
|
// pipelining of the tests) they actually need to use different ports
|
||||||
|
|
Loading…
Reference in New Issue