]> arthur.barton.de Git - bup.git/commit
DemuxConn.__init__: you can't assume the *last* 6 bytes are BUPMUX.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 3 Feb 2011 23:12:52 +0000 (15:12 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 3 Feb 2011 23:28:34 +0000 (15:28 -0800)
commit4b0fed0c2730407be2ee195b6719dd05409c8b40
treee3d8cc76bda90d5fe28f2e7ee4151f996a76e04b
parent05d79f714d987ef70d96b56de8c62e9b18e8abc0
DemuxConn.__init__: you can't assume the *last* 6 bytes are BUPMUX.

The actual muxed data might arrive immediately after it, and since we're not
buffering that, we have to read one byte at a time.

(Buffering would be more efficient if we expected this to happen frequently,
but it shouldn't.)

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/helpers.py