Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
f1790fc8
Commit
f1790fc8
authored
Jan 15, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input_curl: set "ready" flag on EOF
Set the "ready" flag for empty resources.
parent
fa3899f7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
NEWS
NEWS
+1
-0
input_curl.c
src/input_curl.c
+5
-0
No files found.
NEWS
View file @
f1790fc8
...
...
@@ -27,6 +27,7 @@ MPD 0.14.1 - not yet released
- use select() to eliminate busy loop during connect
- honour http_proxy_* config directives
- fix assertion failure on "connection refused"
- fix assertion failure with empty HTTP responses
* log: automatically append newline
* fix setenv() conflict on Solaris
* configure.ac: check for pkg-config before using it
...
...
src/input_curl.c
View file @
f1790fc8
...
...
@@ -194,6 +194,7 @@ input_curl_multi_info_read(struct input_stream *is)
&
msgs_in_queue
))
!=
NULL
)
{
if
(
msg
->
msg
==
CURLMSG_DONE
)
{
c
->
eof
=
true
;
is
->
ready
=
true
;
if
(
msg
->
data
.
result
!=
CURLE_OK
)
{
g_warning
(
"curl failed: %s
\n
"
,
c
->
error
);
...
...
@@ -389,6 +390,7 @@ input_curl_read(struct input_stream *is, void *ptr, size_t size)
g_warning
(
"curl_multi_perform() failed: %s
\n
"
,
curl_multi_strerror
(
mcode
));
c
->
eof
=
true
;
is
->
ready
=
true
;
return
0
;
}
...
...
@@ -491,6 +493,7 @@ input_curl_buffer(struct input_stream *is)
g_warning
(
"curl_multi_perform() failed: %s
\n
"
,
curl_multi_strerror
(
mcode
));
c
->
eof
=
true
;
is
->
ready
=
true
;
return
-
1
;
}
...
...
@@ -784,6 +787,8 @@ input_curl_seek(struct input_stream *is, off_t offset, int whence)
struct
input_curl
*
c
=
is
->
data
;
bool
ret
;
assert
(
is
->
ready
);
if
(
whence
==
SEEK_SET
&&
offset
==
0
)
{
if
(
is
->
offset
==
0
)
/* no-op */
...
...
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