global client
global client2
restarts = 0
- iterations = 4
+ iterations = 10000
success = False
test = Test ('test_memory_consumption', verbose)
- server = Peer(test, './confs/c_bootstrap_server.conf');
+ server = Peer(test, './confs/c_bootstrap_server_w_massif.conf');
server.start();
client = Peer(test, './confs/c_no_nat_client.conf');
client.start();
while (restarts < iterations):
- print 'Iteration #' + str (restarts) + ' of ' + str (restarts)
+ print 'Iteration #' + str (restarts) + ' of ' + str (iterations)
+ print '---------------------'
restarts += 1
client2 = Peer(test, './confs/c_no_nat_client_2.conf');
client2.start();
test.p ('All peers connected, stopping client2')
client2.stop ()
check_disconnect ()
- test.p ('Peer disconnected')
+ test.p ('Peer disconnected\n')
print str (iterations) + " Iteration executed"
server.stop ()