use nonblocking sockets

This commit is contained in:
mutantmonkey
2011-09-22 16:07:26 -04:00
parent 67ef6a0afe
commit 279e8ba969
2 changed files with 2 additions and 8 deletions

2
irc.py
View File

@@ -101,7 +101,7 @@ class Bot(asynchat.async_chat):
if use_ssl:
sock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_TLSv1)
# FIXME: ssl module does not appear to work properly with nonblocking sockets
#sock.setblocking(0)
sock.setblocking(0)
self.set_socket(sock)
def handle_connect(self):