]> arthur.barton.de Git - bup.git/commitdiff
OOPS! Was writing one byte at a time to the server.
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 6 Jan 2010 04:50:41 +0000 (23:50 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 6 Jan 2010 04:52:08 +0000 (23:52 -0500)
_raw_write() expects a list, not a string, so it was iterating over it
character by character.  Magically it worked anyway.  Which is sort of cool,
and yet not.

cmd-server.py

index 2ad240a55825d2619094f5be5e580d42c1ea5c4c..e29b20189bf9ef0919eb29bb2372398f4a3a5756 100755 (executable)
@@ -55,7 +55,7 @@ def receive_objects(conn, junk):
             w.abort()
             raise Exception('object read: expected %d bytes, got %d\n'
                             % (n, len(buf)))
-        w._raw_write(buf)
+        w._raw_write([buf])
     w.close()
     conn.ok()