Open choksi81 opened 10 years ago
The advertise service often returns an empty list when it is past the graceperiod but before the timeout.
Here is an output for successful lookup:
monzum@TestUbuntu:~/exdisk/work/affix_library$ python test_advertise.py time_server {'exception': ['returned': [(('central', 'time_server', 100, [True](],)), ['129.63.159.101:63106', '128.111.52.64:63106', '141.161.20.33:63106', '204.8.155.227:63106', '128.42.142.42:63106', '200.0.206.169:63106', '129.10.120.193:63106', '195.113.161.83:63106']('130.216.1.22:63106',)), (('central_v2', 'time_server', 100, [['204.8.155.227:63106', '142.103.2.2:63106', '156.56.250.226:63106', '160.36.57.173:63106', '13.7.64.20:63106', '128.111.52.64:63106', '129.63.159.101:63106', '141.161.20.33:63106', '195.113.161.83:63106', '129.10.120.193:63106', '128.42.142.42:63106', '192.33.90.68:63106', '192.42.83.253:63106', '165.91.55.8:63106', '130.195.4.68:63106', '141.219.252.132:63106', '128.232.103.201:63106', '130.216.1.22:63106'](True]),))], 'aborted': ['129.63.159.101:63106', '128.111.52.64:63106', '141.161.20.33:63106', '204.8.155.227:63106', '128.42.142.42:63106', '200.0.206.169:63106', '129.10.120.193:63106', '195.113.161.83:63106', '142.103.2.2:63106', '156.56.250.226:63106', '160.36.57.173:63106', '13.7.64.20:63106', '192.33.90.68:63106', '192.42.83.253:63106', '165.91.55.8:63106', '130.195.4.68:63106', '141.219.252.132:63106', '128.232.103.201:63106'](]} ['130.216.1.22:63106',) Time to lookup: 0.165866136551
Here is a lookup of a case where it failed and timed out
monzum@TestUbuntu:~/exdisk/work/affix_library$ python test_advertise.py time_server {'exception': ['returned': [(('central_v2', 'time_server', 100, [False](],)), [(('central', 'time_server', 100, [False](]),)), ['aborted': [](])],)} [] Time to lookup: 19.150124073
The advertise service often returns an empty list when it is past the graceperiod but before the timeout.
Here is an output for successful lookup:
Here is a lookup of a case where it failed and timed out