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
115dd2b5
Commit
115dd2b5
authored
Aug 26, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/curl: require CURL 7.33, remove bug workaround
parent
b18003dd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
20 deletions
+3
-20
CurlInputPlugin.cxx
src/input/plugins/CurlInputPlugin.cxx
+0
-4
Global.cxx
src/lib/curl/Global.cxx
+1
-14
Global.hxx
src/lib/curl/Global.hxx
+1
-1
meson.build
src/lib/curl/meson.build
+1
-1
No files found.
src/input/plugins/CurlInputPlugin.cxx
View file @
115dd2b5
...
...
@@ -48,10 +48,6 @@
#include <curl/curl.h>
#if LIBCURL_VERSION_NUM < 0x071200
#error libcurl is too old
#endif
/**
* Do not buffer more than this number of bytes. It should be a
* reasonable limit that doesn't make low-end machines suffer too
...
...
src/lib/curl/Global.cxx
View file @
115dd2b5
/*
* Copyright 2008-201
6
Max Kellermann <max.kellermann@gmail.com>
* Copyright 2008-201
9
Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -34,7 +34,6 @@
#include "event/SocketMonitor.hxx"
#include "util/RuntimeError.hxx"
#include "util/Domain.hxx"
#include "config.h"
#include <assert.h>
...
...
@@ -127,18 +126,6 @@ CurlSocket::SocketFunction(gcc_unused CURL *easy,
cs
=
new
CurlSocket
(
global
,
global
.
GetEventLoop
(),
SocketDescriptor
(
s
));
global
.
Assign
(
s
,
*
cs
);
}
else
{
#ifdef USE_EPOLL
/* when using epoll, we need to unregister the socket
each time this callback is invoked, because older
CURL versions may omit the CURL_POLL_REMOVE call
when the socket has been closed and recreated with
the same file number (bug found in CURL 7.26, CURL
7.33 not affected); in that case, epoll refuses the
EPOLL_CTL_MOD because it does not know the new
socket yet */
cs
->
Cancel
();
#endif
}
unsigned
flags
=
CurlPollToFlags
(
action
);
...
...
src/lib/curl/Global.hxx
View file @
115dd2b5
/*
* Copyright 2008-201
6
Max Kellermann <max.kellermann@gmail.com>
* Copyright 2008-201
9
Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
src/lib/curl/meson.build
View file @
115dd2b5
curl_dep = dependency('libcurl', version: '>= 7.
18
', required: get_option('curl'))
curl_dep = dependency('libcurl', version: '>= 7.
33
', required: get_option('curl'))
conf.set('ENABLE_CURL', curl_dep.found())
if not curl_dep.found()
subdir_done()
...
...
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