Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit a952ff0

Browse files
authored
Merge pull request #259 from Lukasa/agandhi4-development
Add missing SSL flags.
2 parents e5cb529 + ba37879 commit a952ff0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hyper/ssl_compat.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ def inner(self, *args, **kwargs):
4848
return getattr(self._conn, method)(*args, **kwargs)
4949
return inner
5050

51+
# Referenced in hyper/http20/connection.py. These values come
52+
# from the python ssl package, and must be defined in this file
53+
# for hyper to work in python versions <2.7.9
54+
SSL_ERROR_WANT_READ = 2
55+
SSL_ERROR_WANT_WRITE = 3
56+
5157

5258
# TODO missing some attributes
5359
class SSLError(OSError):

0 commit comments

Comments
 (0)