Skip to content

Commit 283acbf

Browse files
authored
Add libcurl patch (#66)
* Add libcurl patch * Revert libcurl 7.84.0 update
1 parent b0923e3 commit 283acbf

File tree

5 files changed

+26
-2
lines changed

5 files changed

+26
-2
lines changed

deps/curl-7_83_1.tar.gz

3.06 MB
Binary file not shown.

deps/curl-7_84_0.tar.gz

-2.86 MB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/lib/multihandle.h b/lib/multihandle.h
2+
index a26fb619a..18080f1c3 100644
3+
--- a/lib/multihandle.h
4+
+++ b/lib/multihandle.h
5+
@@ -70,10 +70,6 @@ typedef enum {
6+
7+
#define CURLPIPE_ANY (CURLPIPE_MULTIPLEX)
8+
9+
-#if !defined(CURL_DISABLE_SOCKETPAIR)
10+
-#define ENABLE_WAKEUP
11+
-#endif
12+
-
13+
/* value for MAXIMUM CONCURRENT STREAMS upper limit */
14+
#define INITIAL_MAX_CONCURRENT_STREAMS ((1U << 31) - 1)

deps/versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
AWS_LAMBDA_CPP_RELEASE=0.2.8
2-
CURL_VERSION=7_84_0
2+
CURL_VERSION=7_83_1

scripts/update_dependencies.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ source versions
1010
rm -f aws-lambda-cpp-*.tar.gz && rm -f curl-*.tar.gz
1111

1212
# Grab Curl
13-
wget -c https://github.com/curl/curl/archive/refs/tags/curl-$CURL_VERSION.tar.gz
13+
wget -c https://github.com/curl/curl/archive/refs/tags/curl-$CURL_VERSION.tar.gz -O - | tar -xz
14+
15+
# Apply patches
16+
(
17+
cd curl-curl-$CURL_VERSION && \
18+
patch -p1 < ../patches/0001-curl-disable_wakeup.patch
19+
)
20+
21+
# Pack again and remove the folder
22+
tar -czvf curl-$CURL_VERSION.tar.gz curl-curl-$CURL_VERSION && \
23+
rm -rf curl-curl-$CURL_VERSION
1424

1525
# Grab aws-lambda-cpp
1626
wget -c https://github.com/awslabs/aws-lambda-cpp/archive/refs/tags/v$AWS_LAMBDA_CPP_RELEASE.tar.gz -O - | tar -xz

0 commit comments

Comments
 (0)