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
2e21e899
Commit
2e21e899
authored
Dec 29, 2002
by
Michael Smith
Browse files
Minor incompatible change to relaying, to match actual protocol.
svn path=/trunk/icecast/; revision=4169
parent
b8e157d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/connection.c
View file @
2e21e899
...
...
@@ -577,6 +577,11 @@ static void _handle_get_request(connection_t *con,
INFO0
(
"Client attempted to fetch allstreams.txt with bad password"
);
client_send_401
(
client
);
}
else
{
client
->
respcode
=
200
;
bytes
=
sock_write
(
client
->
con
->
sock
,
"HTTP/1.0 200 OK
\r\n\r\n
"
);
if
(
bytes
>
0
)
client
->
con
->
sent_bytes
=
bytes
;
avl_node
*
node
;
source_t
*
s
;
avl_tree_rlock
(
global
.
source_tree
);
...
...
src/slave.c
View file @
2e21e899
...
...
@@ -104,7 +104,11 @@ static void *_slave_thread(void *arg) {
sock_write
(
mastersock
,
"GET /allstreams.txt HTTP/1.0
\r\n
Authorization: Basic %s
\r\n\r\n
"
,
data
);
free
(
data
);
while
(
sock_read_line
(
mastersock
,
buf
,
sizeof
(
buf
)))
{
buf
[
strlen
(
buf
)]
=
0
;
if
(
!
strlen
(
buf
))
break
;
}
while
(
sock_read_line
(
mastersock
,
buf
,
sizeof
(
buf
)))
{
avl_tree_rlock
(
global
.
source_tree
);
if
(
!
source_find_mount
(
buf
))
{
avl_tree_unlock
(
global
.
source_tree
);
...
...
src/xslt.c
View file @
2e21e899
...
...
@@ -111,6 +111,7 @@ static xsltStylesheetPtr xslt_get_stylesheet(char *fn) {
cache
[
i
].
stylesheet
=
xsltParseStylesheetFile
(
fn
);
cache
[
i
].
cache_age
=
time
(
NULL
);
}
DEBUG1
(
"Using cached sheet %i"
,
i
);
return
cache
[
i
].
stylesheet
;
}
}
...
...
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