Server: Fix errors when enabling SSL on windows

This commit is contained in:
Kovid Goyal 2017-06-23 08:04:02 +05:30
parent 2c83abee49
commit c2bdad09a0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -239,6 +239,8 @@ class Connection(object): # {{{
self.ready = False
return 0
raise
except ssl.SSLWantReadError:
return 0
def fill_read_buffer(self):
try:
@ -255,6 +257,8 @@ class Connection(object): # {{{
self.ready = False
return
raise
except ssl.SSLWantReadError:
return
def close(self):
self.ready = False