Skip to content

Commit e68068f

Browse files
author
leo
committed
EPIPE错误
1 parent 20b936d commit e68068f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

litefs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from collections import deque
2424
from Cookie import SimpleCookie
2525
from cStringIO import StringIO
26-
from errno import ENOTCONN, EMFILE, EWOULDBLOCK, EAGAIN
26+
from errno import ENOTCONN, EMFILE, EWOULDBLOCK, EAGAIN, EPIPE
2727
from functools import partial
2828
from greenlet import greenlet, getcurrent, GreenletExit
2929
from gzip import GzipFile
@@ -1084,7 +1084,7 @@ def _handler_io(self, raw, address):
10841084
)
10851085
httpfile._handler()
10861086
except socket.error as e:
1087-
if e.errno == errno.EPIPE:
1087+
if e.errno == EPIPE:
10881088
raise GreenletExit
10891089
raise
10901090
except Exception as e:

0 commit comments

Comments
 (0)