projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b76cf
)
stats_gatherer: reject "<unauth>" as a tubid, to avoid screwing up the data.
author
robk-tahoe
<robk-tahoe@allmydata.com>
Fri, 1 Feb 2008 02:11:31 +0000
(19:11 -0700)
committer
robk-tahoe
<robk-tahoe@allmydata.com>
Fri, 1 Feb 2008 02:11:31 +0000
(19:11 -0700)
src/allmydata/stats.py
patch
|
blob
|
history
diff --git
a/src/allmydata/stats.py
b/src/allmydata/stats.py
index fd6d4b27530366eea7ebf25e5b207de5ef9bd5b3..dbdaf79e5990268c3250b6714102164a1a4cadcc 100644
(file)
--- a/
src/allmydata/stats.py
+++ b/
src/allmydata/stats.py
@@
-120,6
+120,10
@@
class StatsGatherer(foolscap.Referenceable, service.MultiService):
def remote_provide(self, provider, nickname):
tubid = self.get_tubid(provider)
+ if tubid == '<unauth>':
+ print "WARNING: failed to get tubid for %s (%s)" % (provider, nickname)
+ # don't add to clients to poll (polluting data) don't care about disconnect
+ return
self.clients[tubid] = provider
self.nicknames[tubid] = nickname
provider.notifyOnDisconnect(self.lost_client, tubid)