From: Avery Pennarun Date: Wed, 6 Jan 2010 04:50:41 +0000 (-0500) Subject: OOPS! Was writing one byte at a time to the server. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7ae2fd9d52c40ca4d45df2e8d4265f9c923ba856;p=packages%2Fb%2Fbup.git OOPS! Was writing one byte at a time to the server. _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. --- diff --git a/cmd-server.py b/cmd-server.py index 2ad240a..e29b201 100755 --- a/cmd-server.py +++ b/cmd-server.py @@ -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()