absorb socket.errors caused by a closed socket if we knew it was closed
This commit is contained in:
parent
fec76c51b1
commit
aaa97d72c0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue