disable nonblocking sockets again

master
mutantmonkey 2014-06-01 18:33:05 -07:00
parent 0fe637c11e
commit 5ded3dcd24
1 changed files with 2 additions and 1 deletions

3
irc.py
View File

@ -116,7 +116,8 @@ class Bot(asynchat.async_chat):
except:
sock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_TLSv1,
cert_reqs=ssl.CERT_OPTIONAL, ca_certs=self.ca_certs)
sock.setblocking(False)
# FIXME: this doesn't work with SSL enabled
#sock.setblocking(False)
self.set_socket(sock)
def handle_connect(self):