From 137bd47d9138fe9bbb0e1fc81dfbbce2cfd35a96 Mon Sep 17 00:00:00 2001 From: Mark Benvenuto Date: Mon, 22 Feb 2021 18:35:46 -0500 Subject: SERVER-54139 Use a connection pool for curl handles --- src/mongo/util/net/SConscript | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'src/mongo/util/net/SConscript') diff --git a/src/mongo/util/net/SConscript b/src/mongo/util/net/SConscript index 45deefd544c..b8c397f1e93 100644 --- a/src/mongo/util/net/SConscript +++ b/src/mongo/util/net/SConscript @@ -177,9 +177,20 @@ else: ], ) +env.Library( + target='http_client', + source=[ + 'http_client.cpp', + ], + LIBDEPS=[ + '$BUILD_DIR/mongo/base', + ], +) + + if http_client == "off": env.Library( - target='http_client', + target='http_client_impl', source=[ 'http_client_none.cpp', ], @@ -189,12 +200,18 @@ if http_client == "off": ) else: env.Library( - target='http_client', + target='http_client_impl', source=[ 'http_client_winhttp.cpp' if env.TargetOSIs('windows') else 'http_client_curl.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/base', + 'http_client', + ], + LIBDEPS_PRIVATE=[ + '$BUILD_DIR/mongo/executor/connection_pool_executor', + '$BUILD_DIR/mongo/util/alarm', + 'network', ], SYSLIBDEPS=[ 'winhttp' if env.TargetOSIs('windows') else 'curl', -- cgit v1.2.1