Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
33dcf24d
Commit
33dcf24d
authored
Jun 18, 2018
by
Philipp Schafft
🦁
Browse files
Fix: Only reuse client IF we reached the end of it's body
parent
01c35e2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/client.c
View file @
33dcf24d
...
...
@@ -140,8 +140,11 @@ void client_destroy(client_t *client)
return
;
if
(
client
->
reuse
!=
ICECAST_REUSE_CLOSE
)
{
client_reuseconnection
(
client
);
return
;
/* only reuse the client if we reached the body's EOF. */
if
(
client_body_eof
(
client
)
==
1
)
{
client_reuseconnection
(
client
);
return
;
}
}
/* release the buffer now, as the buffer could be on the source queue
...
...
Write
Preview
Supports
Markdown
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