From 9b81b15b741ef571487106c35d10ae4b8691b72b Mon Sep 17 00:00:00 2001 From: hpk Date: Thu, 21 Aug 2008 14:00:08 +0200 Subject: [PATCH] [svn r57544] still notify callbacks if we can't send to the other side anymore. --HG-- branch : trunk --- py/execnet/gateway.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/py/execnet/gateway.py b/py/execnet/gateway.py index cbfe0d277..dd5a676ba 100644 --- a/py/execnet/gateway.py +++ b/py/execnet/gateway.py @@ -136,8 +136,14 @@ class Gateway(object): self._traceex(exc_info()) break finally: + # XXX we need to signal fatal error states to + # channels/callbacks, particularly ones + # where the other side just died. self._stopexec() - self._stopsend() + try: + self._stopsend() + except IOError: + self._trace('IOError on _stopsend()') self._channelfactory._finished_receiving() self._trace('leaving %r' % threading.currentThread())