Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
ddb0cafc
Commit
ddb0cafc
authored
Mar 20, 2017
by
Benjamin REIS
Browse files
Make sure nothing to send before stopping sending chunk
parent
8ff96df7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/bodyhandler.c
src/bodyhandler.c
+3
-2
No files found.
src/bodyhandler.c
View file @
ddb0cafc
...
...
@@ -154,8 +154,9 @@ int belle_sip_body_handler_send_chunk(belle_sip_body_handler_t *obj, belle_sip_m
if
(
obj
->
expected_size
!=
0
){
to_send
=
MIN
(
*
size
,
obj
->
expected_size
-
obj
->
transfered_size
);
}
if
(
to_send
==
0
)
{
// Ane eWouldBlock error added a call to the function, nothing to send so return
if
(
to_send
==
0
&&
obj
->
transfered_size
==
obj
->
expected_size
)
{
// An eWouldBlock error added a call to the function, nothing to send so return
// In some case to_send=0 because not buffer is available but sendings not finished.
belle_sip_message
(
"body handler [%p] : Nothing to send"
,
obj
);
*
size
=
0
;
return
BELLE_SIP_STOP
;
...
...
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