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

Commit

Permalink
Merge pull request #259 from Lukasa/agandhi4-development
Browse files Browse the repository at this point in the history
Add missing SSL flags.
  • Loading branch information
Lukasa committed Jul 9, 2016
2 parents e5cb529 + ba37879 commit a952ff0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hyper/ssl_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ def inner(self, *args, **kwargs):
return getattr(self._conn, method)(*args, **kwargs)
return inner

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


# TODO missing some attributes
class SSLError(OSError):
Expand Down

0 comments on commit a952ff0

Please sign in to comment.