Move all streams to new Streams module and replace ProxyFileStream with GrowingFileSt...
authorCameron Dale <camrdale@gmail.com>
Fri, 25 Apr 2008 05:18:29 +0000 (22:18 -0700)
committerCameron Dale <camrdale@gmail.com>
Fri, 25 Apr 2008 05:18:29 +0000 (22:18 -0700)
commit05422476cb06c6ccd2def7709a251e618e1eafb3
tree31a7cc3328a18bc5b3c17a0fbe23ae7c753a74dd
parentd23afa1f067faf56007facad2dcd204f77e2a984
Move all streams to new Streams module and replace ProxyFileStream with GrowingFileStream.

Instead of ProxyFileStream, now use a combination of GrowingFileStream
and StreamToFile like the PeerManager does to download and upload. It's
mostly working, only some errors when aborting apt-get in test 'a'.

Also added a new test 'c' for downloading out of order, which is why
ProxyFileStream can not be used.
apt_p2p/CacheManager.py
apt_p2p/HTTPServer.py
apt_p2p/PeerManager.py
apt_p2p/Streams.py [new file with mode: 0644]
test.py