Clarify why we need to mark the socket as non blocking.
This commit is contained in:
parent
b9fd3869f4
commit
ebd12e6b3e
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -127,6 +127,9 @@ def wrap_socket(server, file_descriptor):
|
||||||
else:
|
else:
|
||||||
sock = temp_socket
|
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)
|
sock.setblocking(False)
|
||||||
|
|
||||||
message = "{prefix}matrix: Doing SSL handshake...".format(
|
message = "{prefix}matrix: Doing SSL handshake...".format(
|
||||||
|
|
Loading…
Reference in a new issue