Don't swallow up every SSL error
This commit is contained in:
parent
9ebe7933cb
commit
ab02e49807
1 changed files with 4 additions and 8 deletions
|
|
@ -37,19 +37,15 @@ class Server():
|
|||
|
||||
try:
|
||||
sock, addr = listener.accept()
|
||||
except ssl.SSLError:
|
||||
except:
|
||||
return
|
||||
|
||||
def spawn():
|
||||
session = Session(self, sock)
|
||||
session.handle()
|
||||
|
||||
try:
|
||||
session.handle()
|
||||
|
||||
thread = threading.Thread(target=spawn)
|
||||
thread.start()
|
||||
except (ssl.SSLEOFError, ssl.SSLError):
|
||||
pass
|
||||
thread = threading.Thread(target=spawn)
|
||||
thread.start()
|
||||
|
||||
def run(self):
|
||||
hosts = re.split(r'\s*,\s*', self.config.get('listen', 'host'))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue