[vlc-devel] [PATCH] src/network: try to write data again if EAGAIN is returned
david.fuhrmann at gmail.com
david.fuhrmann at gmail.com
Fri Dec 13 12:29:37 CET 2013
From: David Fuhrmann <david.fuhrmann at googlemail.com>
---
src/network/io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/network/io.c b/src/network/io.c
index 6cadffa..4aedd6a 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -433,7 +433,7 @@ ssize_t net_Write( vlc_object_t *p_this, int fd, const v_socket_t *p_vs,
if (val == -1)
{
- if (errno == EINTR)
+ if (errno == EINTR || errno == EAGAIN)
continue;
msg_Err (p_this, "Write error: %m");
break;
--
1.8.3.4 (Apple Git-47)
More information about the vlc-devel
mailing list