[Pkg-telepathy-commits] [libnice] 99/265: agent: Return G_IO_ERROR_WOULD_BLOCK for non-connected pseudoTCP

Simon McVittie smcv at debian.org
Wed May 14 12:04:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit 08cf411f7781bc7adc1f7ba383aa86410b924a83
Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Thu Jan 23 21:02:07 2014 -0500

    agent: Return G_IO_ERROR_WOULD_BLOCK for non-connected pseudoTCP
---
 agent/agent.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/agent/agent.c b/agent/agent.c
index 3c9b282..dfb49a6 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -2649,7 +2649,7 @@ nice_agent_recv_blocking_or_nonblocking (NiceAgent *agent, guint stream_id,
       len = 0;
     } else if (len < 0 &&
         pseudo_tcp_socket_get_error (component->tcp) == ENOTCONN) {
-      g_set_error (&child_error, G_IO_ERROR, G_IO_ERROR_BROKEN_PIPE,
+      g_set_error (&child_error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK,
           "Error reading data from pseudo-TCP socket: not connected.");
     } else if (len < 0) {
       g_set_error (&child_error, G_IO_ERROR, G_IO_ERROR_FAILED,
@@ -2908,7 +2908,7 @@ nice_agent_send_full (
       goto done;
     } else if (ret < 0 &&
         pseudo_tcp_socket_get_error (component->tcp) == ENOTCONN) {
-      g_set_error (&child_error, G_IO_ERROR, G_IO_ERROR_BROKEN_PIPE,
+      g_set_error (&child_error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK,
           "TCP connection is not yet established.");
       goto done;
     } else if (ret < 0) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list