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
390fb717
Commit
390fb717
authored
Apr 07, 2014
by
Youness Alaoui
Committed by
Olivier Crête
May 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only check selected pair for writability in gio outputstream
parent
6840d863
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
agent/outputstream.c
agent/outputstream.c
+7
-16
No files found.
agent/outputstream.c
View file @
390fb717
...
...
@@ -470,7 +470,6 @@ nice_output_stream_is_writable (GPollableOutputStream *stream)
Component
*
component
=
NULL
;
Stream
*
_stream
=
NULL
;
gboolean
retval
=
FALSE
;
GSList
*
i
;
NiceAgent
*
agent
;
/* owned */
/* Closed streams are not writeable. */
...
...
@@ -491,23 +490,15 @@ nice_output_stream_is_writable (GPollableOutputStream *stream)
goto
done
;
}
if
(
component
->
selected_pair
.
local
!=
NULL
)
{
NiceSocket
*
sockptr
=
component
->
selected_pair
.
local
->
sockptr
;
/* If it’s a reliable agent, see if there’s any space in the pseudo-TCP
* output buffer. */
if
(
!
nice_socket_is_reliable
(
component
->
selected_pair
.
local
->
sockptr
)
&&
component
->
tcp
!=
NULL
)
{
retval
=
pseudo_tcp_socket_can_send
(
component
->
tcp
);
goto
done
;
}
/* Check whether any of the component’s FDs are pollable. */
for
(
i
=
component
->
socket_sources
;
i
!=
NULL
;
i
=
i
->
next
)
{
SocketSource
*
socket_source
=
i
->
data
;
NiceSocket
*
nicesock
=
socket_source
->
socket
;
if
(
g_socket_condition_check
(
nicesock
->
fileno
,
G_IO_OUT
)
!=
0
)
{
retval
=
TRUE
;
break
;
}
if
(
!
nice_socket_is_reliable
(
sockptr
))
{
if
(
component
->
tcp
!=
NULL
)
retval
=
pseudo_tcp_socket_can_send
(
component
->
tcp
);
}
else
{
retval
=
(
g_socket_condition_check
(
sockptr
->
fileno
,
G_IO_OUT
)
!=
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