Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix, actually kill url to unixtime threads that timed out
fix, async wait only seconds (10) only once rather than wait for all pool add test usr/share/sdwdate/get_time_from_servers_test
- Loading branch information
Patrick Schleizer
committed
Sep 13, 2016
1 parent
36111e2
commit a79f622
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/python | ||
|
||
import sys | ||
from sdwdate.remote_times import get_time_from_servers | ||
|
||
urls, unix_times = get_time_from_servers(["sejnfjrq6szgca7v.onion", "vtjkwwcq5osuo6uq.onion", "vtjkwwcq5osuo6uq.onion", "vtjkwwcq5osuo6uq.onion"], "127.0.0.1", "9050") | ||
|
||
print urls, unix_times |