Always set the socket to be non-blocking.
authorMikael Hallendal <micke@imendio.com>
Wed, 29 Oct 2008 17:52:22 +0100
changeset 553 876d92399bbb
parent 551 db742abb3630
child 554 df52d7a1a9af
Always set the socket to be non-blocking. Managed to remove the code that actually made the socket blocking when I removed the code to set it depending on whether the blocking or non-blocking LmConnection API was used or not.
loudmouth/lm-old-socket.c
--- a/loudmouth/lm-old-socket.c	Mon Oct 27 23:44:51 2008 +0100
+++ b/loudmouth/lm-old-socket.c	Wed Oct 29 17:52:22 2008 +0100
@@ -640,6 +640,8 @@
     g_io_channel_set_encoding (connect_data->io_channel, NULL, NULL);
     g_io_channel_set_buffered (connect_data->io_channel, FALSE);
     
+    _lm_sock_set_blocking (connect_data->fd, FALSE);
+	
     if (socket->proxy) {
         socket->watch_connect =
             lm_misc_add_io_watch (socket->context,