[dovecot-cvs] dovecot/src/lib network.c,1.24,1.25

cras at dovecot.org cras at dovecot.org
Sat Sep 18 17:37:21 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv30526

Modified Files:
	network.c 
Log Message:
net_connect() should be nonblocking (currently unused in Dovecot)



Index: network.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/network.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- network.c	13 Jun 2004 23:37:40 -0000	1.24
+++ network.c	18 Sep 2004 14:37:18 -0000	1.25
@@ -126,6 +126,7 @@
 	/* set socket options */
 	setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
 	setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &opt, sizeof(opt));
+	net_set_nonblock(fd, TRUE);
 
 	/* set our own address */
 	if (my_ip != NULL) {



More information about the dovecot-cvs mailing list