From 5ded3dcd247f9f8a51194fedb2c53a9b1528a59f Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Sun, 1 Jun 2014 18:33:05 -0700 Subject: [PATCH] disable nonblocking sockets again --- irc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irc.py b/irc.py index fabea4b..2a31ec4 100755 --- a/irc.py +++ b/irc.py @@ -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):