Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
94
Issues
94
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
46047723
Commit
46047723
authored
Apr 17, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feature: Consider encoding backend EOF state
parent
38436c3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
src/client.c
src/client.c
+25
-1
No files found.
src/client.c
View file @
46047723
...
...
@@ -439,11 +439,16 @@ void client_set_queue(client_t *client, refbuf_t *refbuf)
ssize_t
client_body_read
(
client_t
*
client
,
void
*
buf
,
size_t
len
)
{
ICECAST_LOG_DEBUG
(
"Reading from body (client=%p)"
,
client
);
return
client_read_bytes
(
client
,
buf
,
len
);
}
int
client_body_eof
(
client_t
*
client
)
/* we might un-static this if needed at some time in distant future. -- ph3-der-loewe, 2018-04-17 */
static
int
client_eof
(
client_t
*
client
)
{
if
(
!
client
)
return
-
1
;
if
(
!
client
->
con
)
return
0
;
...
...
@@ -455,3 +460,22 @@ int client_body_eof(client_t *client)
return
0
;
}
int
client_body_eof
(
client_t
*
client
)
{
int
ret
=
-
1
;
if
(
!
client
)
return
-
1
;
if
(
client
->
encoding
)
{
ICECAST_LOG_DEBUG
(
"Looking for body EOF with encoding (client=%p)"
,
client
);
ret
=
httpp_encoding_eof
(
client
->
encoding
,
(
int
(
*
)(
void
*
))
client_eof
,
client
);
}
else
{
ICECAST_LOG_DEBUG
(
"Looking for body EOF without encoding (client=%p)"
,
client
);
ret
=
client_eof
(
client
);
}
ICECAST_LOG_DEBUG
(
"... result is: %i (client=%p)"
,
ret
,
client
);
return
ret
;
}
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