Show More
@@ -94,7 +94,7 b' class _httprequesthandler(httpservermod.' | |||||
94 | try: |
|
94 | try: | |
95 | self.do_hgweb() |
|
95 | self.do_hgweb() | |
96 | except socket.error as inst: |
|
96 | except socket.error as inst: | |
97 |
if inst |
|
97 | if inst.errno != errno.EPIPE: | |
98 | raise |
|
98 | raise | |
99 |
|
99 | |||
100 | def do_POST(self): |
|
100 | def do_POST(self): |
@@ -636,7 +636,7 b' def safesend(self, str):' | |||||
636 | self.sentbytescount += len(str) |
|
636 | self.sentbytescount += len(str) | |
637 | except socket.error as v: |
|
637 | except socket.error as v: | |
638 | reraise = True |
|
638 | reraise = True | |
639 | if v[0] == errno.EPIPE: # Broken pipe |
|
639 | if v.args[0] == errno.EPIPE: # Broken pipe | |
640 | if self._HTTPConnection__state == httplib._CS_REQ_SENT: |
|
640 | if self._HTTPConnection__state == httplib._CS_REQ_SENT: | |
641 | self._broken_pipe_resp = None |
|
641 | self._broken_pipe_resp = None | |
642 | self._broken_pipe_resp = self.getresponse() |
|
642 | self._broken_pipe_resp = self.getresponse() |
General Comments 0
You need to be logged in to leave comments.
Login now