[Jython-checkins] jython: Support socket shutdown of incompletely set up sockets
jim.baker
jython-checkins at python.org
Fri Nov 20 16:08:22 EST 2015
https://hg.python.org/jython/rev/e7c755355c88
changeset: 7815:e7c755355c88
user: Jim Baker <jim.baker at rackspace.com>
date: Fri Nov 20 14:07:36 2015 -0700
summary:
Support socket shutdown of incompletely set up sockets
files:
Lib/_socket.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/_socket.py b/Lib/_socket.py
--- a/Lib/_socket.py
+++ b/Lib/_socket.py
@@ -1080,6 +1080,8 @@
self.channel.pipeline().remove(self.python_inbound_handler)
except NoSuchElementException:
pass # already removed, can safely ignore (presumably)
+ except AttributeError:
+ pass # inbound handler never set up, also ignore
if how & SHUT_WR or how & SHUT_RDWR:
self._can_write = False
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list