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
cb644b2b
Commit
cb644b2b
authored
Dec 24, 2015
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pseudotcp: close local socket on initial transmission error
This is required as no retransmissions will happen
parent
23331ff2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
agent/pseudotcp.c
agent/pseudotcp.c
+6
-2
No files found.
agent/pseudotcp.c
View file @
cb644b2b
...
@@ -2136,6 +2136,7 @@ attempt_send(PseudoTcpSocket *self, SendFlags sflags)
...
@@ -2136,6 +2136,7 @@ attempt_send(PseudoTcpSocket *self, SendFlags sflags)
gsize
snd_buffered
;
gsize
snd_buffered
;
GList
*
iter
;
GList
*
iter
;
SSegment
*
sseg
;
SSegment
*
sseg
;
int
transmit_status
;
cwnd
=
priv
->
cwnd
;
cwnd
=
priv
->
cwnd
;
if
((
priv
->
dup_acks
==
1
)
||
(
priv
->
dup_acks
==
2
))
{
// Limited Transmit
if
((
priv
->
dup_acks
==
1
)
||
(
priv
->
dup_acks
==
2
))
{
// Limited Transmit
...
@@ -2211,9 +2212,12 @@ attempt_send(PseudoTcpSocket *self, SendFlags sflags)
...
@@ -2211,9 +2212,12 @@ attempt_send(PseudoTcpSocket *self, SendFlags sflags)
subseg
);
subseg
);
}
}
if
(
transmit
(
self
,
sseg
,
now
)
!=
0
)
{
transmit_status
=
transmit
(
self
,
sseg
,
now
);
if
(
transmit_status
!=
0
)
{
DEBUG
(
PSEUDO_TCP_DEBUG_NORMAL
,
"transmit failed"
);
DEBUG
(
PSEUDO_TCP_DEBUG_NORMAL
,
"transmit failed"
);
// TODO: consider closing socket
// TODO: Is this the right thing ?
closedown
(
self
,
transmit_status
,
CLOSEDOWN_REMOTE
);
return
;
return
;
}
}
...
...
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