summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-06-20 10:59:51 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-06-20 10:59:51 +0100
commitc894d6e153d7803e8f4639c2697c0c592a460980 (patch)
tree24fbd645beb808e306868b674fe59aba1a950a3c
parentfdfde37bdf5330316c96fd296b038ff4d870c010 (diff)
parent594f59a8146fe45eba9e30dac7961f8aaaaf1997 (diff)
downloadmorph-c894d6e153d7803e8f4639c2697c0c592a460980.tar.gz
Merge branch 'sam/distbuild-busyloop-debug'
Reviewed-By: Richard Ipsum <richard.ipsum@codethink.co.uk> Reviewed-By: Richard Maw <richard.maw@codethink.co.uk>
-rw-r--r--distbuild/sockbuf.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/distbuild/sockbuf.py b/distbuild/sockbuf.py
index 346706db..c2cc8e2a 100644
--- a/distbuild/sockbuf.py
+++ b/distbuild/sockbuf.py
@@ -133,6 +133,8 @@ class SocketBuffer(StateMachine):
try:
data = event.sock.read(self._max_buffer)
except (IOError, OSError), e:
+ logging.debug(
+ '%s: _fill(): Exception %s from sock.read()', self, e)
return [SocketError(event.sock, e)]
if data:
@@ -151,6 +153,8 @@ class SocketBuffer(StateMachine):
try:
n = event.sock.write(data)
except (IOError, OSError), e:
+ logging.debug(
+ '%s: _flush(): Exception %s from sock.write()', self, e)
return [SocketError(event.sock, e)]
self._wbuf.remove(n)
if len(self._wbuf) == 0: