core: log the data received on the latch file handle.

pull/295/head
David Wilson 6 years ago
parent 970f54de85
commit 42276f158b

@ -1258,8 +1258,10 @@ class Latch(object):
if i >= self._waking: if i >= self._waking:
raise e or TimeoutError() raise e or TimeoutError()
self._waking -= 1 self._waking -= 1
if rsock.recv(2) != b('\x7f'): byte = rsock.recv(10)
raise LatchError('internal error: received >1 wakeups') if byte != b('\x7f'):
raise LatchError('internal error: received >1 wakeups: %r'
% (byte,))
if e: if e:
raise e raise e
if self.closed: if self.closed:

Loading…
Cancel
Save