Brian Warner
cbca430062
node.py: hush pyflakes warnings
2007-05-23 17:54:48 -07:00
Zooko O'Whielacronx
44902c5152
add unit test for "advertised_ip_addresses" feature and fix bug in that feature uncovered by this unit test
2007-05-23 15:08:55 -07:00
Zooko O'Whielacronx
77f55f368a
make stopService() defer until startService() completes (fixes a problem with the new not-yet-committed unit test)
2007-05-23 15:08:03 -07:00
Brian Warner
f9e45391f6
node.py: use 'node.pem' for all nodes
...
Rather than use separate client.pem and introducer.pem files, use 'node.pem'
for all nodes regardless of what type it is. This is slightly cleaner, but
introduces a compatibility. Users who upgrade to this change should do
'mv client.pem node.pem' to avoid generating a new certificate and thus
changing their TubID.
2007-05-23 12:48:52 -07:00
Brian Warner
9edc6574ae
node.py: use Tub's certFile= argument instead of doing it ourselves
2007-05-23 12:41:23 -07:00
Zooko O'Whielacronx
921e643b93
don't check for existence of portnum file and then try to open it -- instead try to open it and catch exception
...
This avoids a race condition, also known as time-of-check-to-time-of-use.
2007-05-22 14:06:00 -07:00
Zooko O'Whielacronx
98066ccaee
don't test for existence of certfile and then try to open it -- instead try to open it and catch exception
...
This avoids a race condition, also known as time-of-check-to-time-of-use.
2007-05-22 14:04:16 -07:00
Zooko O'Whielacronx
a2970cf7c1
fix handling of local_ip file and rename it to advertised_ip_addresses and document it in README
2007-05-22 14:01:40 -07:00
Zooko O'Whielacronx
3d1adf6d30
update docs, remove extraneous licence text, sort module names in import statement
...
closes #46 ?
2007-05-21 13:42:51 -07:00
Zooko O'Whielacronx
d19d1058e0
extirpate all references the "queen" and "metatracker"
...
This is a potentially disruptive and potentially ugly change to the code base,
because I renamed the object that serves in both roles from "Queen" to
"IntroducerAndVdrive", which is a bit of an ugly name.
However, I think that clarity is important enough in this release to make this
change. All unit tests pass. I'm now darcs recording this patch in order to
pull it to other machines for more testing.
2007-04-30 09:57:52 -07:00
Zooko O'Whielacronx
a70a599249
make it print out version numbers when it constructs a Node instance
2007-04-27 13:47:38 -07:00
Brian Warner
5b0ece6ece
node: enable Tub.logLocalFailures now that we require foolscap-0.1.2
2007-04-06 20:55:59 -07:00
Brian Warner
25ff9e1f97
complete the Introducer changes, separate out vdrive access, make everything work again
2007-03-27 16:12:11 -07:00
Brian Warner
91e7f092e8
node.py: switch to using get_local_addresses_async, which is slightly more portable (most forms of unix)
2007-03-08 15:12:52 -07:00
Brian Warner
78d19c271c
rearrange service startup a bit, now Node.startService() returns a Deferred that fires when the tub is actually ready, and there is also a Node.when_tub_ready() hook. This allows get_local_addresses() to be slow and not break everything. Changed all necessary test cases to accomodate this slow startup.
2007-03-08 15:10:36 -07:00
Brian Warner
d4020fa533
control: add RIControlClient, fix some pyflakes warnings
2007-03-07 19:20:27 -07:00
Brian Warner
2c261ce996
change node startup to put all local addresses in the PBURL, including 127.0.0.1. This should facilitate testing on both connected and disconnected systems.
2007-03-07 18:43:17 -07:00
Brian Warner
3490378551
move all packages into src/, fix allmydata.Crypto build. Now you must perform a 'setup.py build' before using anything, and you must add the build directory (build/lib.linux-i686-2.4) to your PYTHONPATH before doing anything
2006-12-14 03:39:50 -07:00