Clarify why we need to mark the socket as non blocking.

This commit is contained in:
poljar (Damir Jelić) 2018-02-02 11:10:46 +01:00
parent b9fd3869f4
commit ebd12e6b3e

View file

@ -127,6 +127,9 @@ def wrap_socket(server, file_descriptor):
else:
sock = temp_socket
# fromfd() duplicates the file descriptor but doesn't retain it's blocking
# non-blocking attribute, so mark the socket as non-blocking even though
# weechat already did that for us
sock.setblocking(False)
message = "{prefix}matrix: Doing SSL handshake...".format(