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

Commit e88f567

Browse files
committed
Merge branch 'development' of https://github.com/agandhi4/hyper into agandhi4-development
2 parents e5cb529 + c3ea3d0 commit e88f567

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)