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.
--- 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,