News for hackers. Stuff that matters.
Re:Show HN: Framework for faster distributed data transfer by kenko on Sunday June 17, 2012 @03:01PM (#4123550)
Change test-client.py to end:

  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 defined
Re:Show HN: Framework for faster distributed data transfer by mgronhol on Sunday June 17, 2012 @03:06PM (#4123559)
Thanks, just noticed a small initialization issue there, fixibg that soon :)