14
0

- go back to a working version: downgrade to 0.20.1

- add  0001-Fix-SSL-connection-reset-errors.patch to fix
  hangs on SSL connections

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=41
This commit is contained in:
2017-11-26 16:03:18 +00:00
committed by Git OBS Bridge
parent e5ead3256f
commit 548b43677d
5 changed files with 31 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
diff --git a/eventlet/wsgi.py b/eventlet/wsgi.py
index ef458aa..3c848b7 100644
--- a/eventlet/wsgi.py
+++ b/eventlet/wsgi.py
@@ -346,7 +346,12 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
except greenio.SSL.ZeroReturnError:
self.raw_requestline = ''
except socket.error as e:
- if support.get_errno(e) not in BAD_SOCK:
+ last_errno = support.get_errno(e)
+ if last_errno in BROKEN_SOCK:
+ self.server.log.debug('(%s) connection reset by peer %r',
+ self.server.pid,
+ self.client_address)
+ elif last_errno not in BAD_SOCK:
raise
self.raw_requestline = ''