23 points · by mgronhol · 14y ago · 10 comments
print client.fetch(1000)
print client.fetch(1)
And when you run it, you get the same thing twice (whatever file was specified as the first argument to test-server.py on the commandline). On the other hand, change it to end print client.fetch(1)
print client.fetch(1000)
and you get "Hello World!" twice.At one point the server process also gave me this:
Server(s) started. Press enter to stop.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/Users/wolfson/src/others/pouring-rain/LT/Server.py", line 84, in run
self.streams[ entry[1] ].discard( entry[0] )
NameError: global name 'entry' is not definedOn the technical side, theoretically this should only be a few percent faster than BitTorrent but requires significant complexity.
also, why faster? does bittorrent duplicate some traffic?
[update] huh. just after posting i started searching for "fountain codes" and found this - http://blog.notdot.net/2012/01/Damn-Cool-Algorithms-Fountain... (previously had been searching for luby, raptor, etc).