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
11626e48
Commit
11626e48
authored
Aug 26, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/curl: implement a hard-coded timeout of 10 seconds
Be sure to stop the operation at some point when the server isn't responding.
parent
b3df4dc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
NEWS
NEWS
+1
-0
curl_input_plugin.c
src/input/curl_input_plugin.c
+3
-0
No files found.
NEWS
View file @
11626e48
...
...
@@ -4,6 +4,7 @@ ver 0.16.4 (2011/??/??)
* apply follow_inside_symlinks to absolute symlinks
* input:
- curl: limit the receive buffer size
- curl: implement a hard-coded timeout of 10 seconds
* decoder:
- ffmpeg: workaround for semantic API change in recent ffmpeg versions
- flac: validate the sample rate when scanning the tag
...
...
src/input/curl_input_plugin.c
View file @
11626e48
...
...
@@ -680,6 +680,9 @@ input_curl_easy_init(struct input_curl *c, GError **error_r)
curl_easy_setopt
(
c
->
easy
,
CURLOPT_MAXREDIRS
,
5
);
curl_easy_setopt
(
c
->
easy
,
CURLOPT_FAILONERROR
,
true
);
curl_easy_setopt
(
c
->
easy
,
CURLOPT_ERRORBUFFER
,
c
->
error
);
curl_easy_setopt
(
c
->
easy
,
CURLOPT_NOPROGRESS
,
1l
);
curl_easy_setopt
(
c
->
easy
,
CURLOPT_NOSIGNAL
,
1l
);
curl_easy_setopt
(
c
->
easy
,
CURLOPT_CONNECTTIMEOUT
,
10l
);
if
(
proxy
!=
NULL
)
curl_easy_setopt
(
c
->
easy
,
CURLOPT_PROXY
,
proxy
);
...
...
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