absorb socket.errors caused by a closed socket if we knew it was closed
This commit is contained in:
Robey Pointer 2006-11-27 11:20:23 -08:00
parent fec76c51b1
commit aaa97d72c0
1 changed files with 2 additions and 0 deletions

View File

@ -218,6 +218,8 @@ class Packetizer (object):
# we need to work around it.
if (type(e.args) is tuple) and (len(e.args) > 0) and (e.args[0] == errno.EAGAIN):
got_timeout = True
elif self.__closed:
raise EOFError()
else:
raise
if got_timeout: