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 = ''

3
eventlet-0.20.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3ad581b8645a54acf436e62a4d8cbf229a1ec7bfa3287c160f0258826b297838
size 469509

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:08faffab88c1b08bd53ea28bf084a572c89f7e7648bd9d71e6116ac17a51a15d
size 484191

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Nov 26 16:02:38 UTC 2017 - dmueller@suse.com
- 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
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 6 07:35:07 UTC 2017 - tbechtold@suse.com Fri Oct 6 07:35:07 UTC 2017 - tbechtold@suse.com

View File

@@ -18,13 +18,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-eventlet Name: python-eventlet
Version: 0.21.0 Version: 0.20.1
Release: 0 Release: 0
Summary: Concurrent networking library for Python Summary: Concurrent networking library for Python
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://eventlet.net Url: http://eventlet.net
Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
Patch0: 0001-Fix-SSL-connection-reset-errors.patch
BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module greenlet} BuildRequires: %{python_module greenlet}
@@ -60,6 +61,7 @@ for Python that allows changing how code is run.
%prep %prep
%setup -q -n eventlet-%{version} %setup -q -n eventlet-%{version}
%patch0 -p1
sed -i '/enum_compat/d' setup.py # crude way to drop the strange "enum-compat" requirement sed -i '/enum_compat/d' setup.py # crude way to drop the strange "enum-compat" requirement
sed -i "s|^#!.*||" eventlet/support/greendns.py # Fix non-executable script sed -i "s|^#!.*||" eventlet/support/greendns.py # Fix non-executable script