diff src/lib/network.c @ 3681:771cd6776d4b HEAD

Use read() instead of recv() in net_receive(), so it works even with non-sockets. We weren't using any recv()'s flags anyway, so it shouldn't matter.
author Timo Sirainen <tss@iki.fi>
date Thu, 27 Oct 2005 16:40:40 +0300
parents 3ae2df67459c
children 55df57c028d4
line wrap: on
line diff
--- a/src/lib/network.c	Thu Oct 27 16:11:44 2005 +0300
+++ b/src/lib/network.c	Thu Oct 27 16:40:40 2005 +0300
@@ -379,7 +379,7 @@
 	i_assert(buf != NULL);
 	i_assert(len <= SSIZE_T_MAX);
 
-	ret = recv(fd, buf, len, 0);
+	ret = read(fd, buf, len);
 	if (ret == 0) {
 		/* disconnected */
 		errno = 0;