Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
08cf411f
Commit
08cf411f
authored
Jan 23, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Return G_IO_ERROR_WOULD_BLOCK for non-connected pseudoTCP
parent
91befb1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
agent/agent.c
agent/agent.c
+2
-2
No files found.
agent/agent.c
View file @
08cf411f
...
@@ -2649,7 +2649,7 @@ nice_agent_recv_blocking_or_nonblocking (NiceAgent *agent, guint stream_id,
...
@@ -2649,7 +2649,7 @@ nice_agent_recv_blocking_or_nonblocking (NiceAgent *agent, guint stream_id,
len
=
0
;
len
=
0
;
}
else
if
(
len
<
0
&&
}
else
if
(
len
<
0
&&
pseudo_tcp_socket_get_error
(
component
->
tcp
)
==
ENOTCONN
)
{
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."
);
"Error reading data from pseudo-TCP socket: not connected."
);
}
else
if
(
len
<
0
)
{
}
else
if
(
len
<
0
)
{
g_set_error
(
&
child_error
,
G_IO_ERROR
,
G_IO_ERROR_FAILED
,
g_set_error
(
&
child_error
,
G_IO_ERROR
,
G_IO_ERROR_FAILED
,
...
@@ -2908,7 +2908,7 @@ nice_agent_send_full (
...
@@ -2908,7 +2908,7 @@ nice_agent_send_full (
goto
done
;
goto
done
;
}
else
if
(
ret
<
0
&&
}
else
if
(
ret
<
0
&&
pseudo_tcp_socket_get_error
(
component
->
tcp
)
==
ENOTCONN
)
{
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."
);
"TCP connection is not yet established."
);
goto
done
;
goto
done
;
}
else
if
(
ret
<
0
)
{
}
else
if
(
ret
<
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment