From 4244a4609cea4214fe2128d442c079b866d9bc41 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 19 Sep 2017 01:04:46 +0530 Subject: [PATCH] Reduce CHUNK_SIZE to paper over a hang with rsync --- mitogen/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitogen/core.py b/mitogen/core.py index 60198973..c1e67776 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -29,7 +29,7 @@ FORWARD_LOG = 102 ADD_ROUTE = 103 ALLOCATE_ID = 104 -CHUNK_SIZE = 16384 +CHUNK_SIZE = 4096 # TODO: this was 16384, but that triggers an unfixed hang. if __name__ == 'mitogen.core': @@ -225,7 +225,7 @@ class Sender(object): def put(self, data): """Send `data` to the remote.""" - IOLOG.debug('%r.send(%r)', self, data) + IOLOG.debug('%r.put(%r..)', self, data[:100]) self.context.send( Message.pickled( data,