Make the ssl handshake non blocking.

This commit is contained in:
poljar (Damir Jelić) 2018-01-30 19:29:03 +01:00
parent ad5472d5f2
commit d83c25e709
3 changed files with 103 additions and 58 deletions

View file

@ -48,6 +48,7 @@ class MatrixServer:
self.buffers = dict() # type: Dict[str, weechat.buffer]
self.server_buffer = None # type: weechat.buffer
self.fd_hook = None # type: weechat.hook
self.ssl_hook = None # type: weechat.hook
self.timer_hook = None # type: weechat.hook
self.numeric_address = "" # type: str

View file

@ -93,7 +93,7 @@ def server_buffer_set_title(server):
else:
ip_string = ""
title = ("Matrix: {address}/{port}{ip}").format(
title = ("Matrix: {address}:{port}{ip}").format(
address=server.address,
port=server.port,
ip=ip_string)