Skip to content

Commit 15449b8

Browse files
Add curl patch (#419)
1 parent 3175265 commit 15449b8

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

aws-lambda-java-runtime-interface-client/src/main/jni/Dockerfile.glibc

+5
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ RUN yum install -y \
77
tar \
88
gzip \
99
make \
10+
patch \
1011
gcc \
1112
gcc-c++ \
1213
java-11-amazon-corretto
1314

1415
# Install curl dependency
1516
COPY ./deps/curl-$CURL_VERSION.tar.gz /src/deps/
17+
COPY ./deps/curl_001_disable_wakeup.patch /src/deps/
18+
1619
RUN tar xzf /src/deps/curl-$CURL_VERSION.tar.gz -C /src/deps
20+
1721
WORKDIR /src/deps/curl-$CURL_VERSION
22+
RUN patch lib/multihandle.h ../curl_001_disable_wakeup.patch
1823
RUN ./configure \
1924
--prefix $(pwd)/../artifacts \
2025
--disable-shared \

aws-lambda-java-runtime-interface-client/src/main/jni/Dockerfile.musl

+5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ RUN apk update && \
1010
g++ \
1111
gcc \
1212
make \
13+
patch \
1314
perl
1415

1516
# Install curl dependency
1617
COPY ./deps/curl-$CURL_VERSION.tar.gz /src/deps/
18+
COPY ./deps/curl_001_disable_wakeup.patch /src/deps/
19+
1720
RUN tar xzf /src/deps/curl-$CURL_VERSION.tar.gz -C /src/deps
21+
1822
WORKDIR /src/deps/curl-$CURL_VERSION
23+
RUN patch lib/multihandle.h ../curl_001_disable_wakeup.patch
1924
RUN ./configure \
2025
--prefix $(pwd)/../artifacts \
2126
--disable-shared \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/multihandle.h b/multihandle.h
2+
index a26fb619a..18080f1c3 100644
3+
--- a/multihandle.h
4+
+++ b/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)

0 commit comments

Comments
 (0)