diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2021-02-22 18:35:46 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-23 00:17:20 +0000 |
commit | 137bd47d9138fe9bbb0e1fc81dfbbce2cfd35a96 (patch) | |
tree | 5e5fe10d6e485b0aa92872ad8dcf367150d80c6d /src/mongo/util/net/SConscript | |
parent | 99c7dcf5c9630754051e0d6d7ca8604cda4d6646 (diff) | |
download | mongo-137bd47d9138fe9bbb0e1fc81dfbbce2cfd35a96.tar.gz |
SERVER-54139 Use a connection pool for curl handles
Diffstat (limited to 'src/mongo/util/net/SConscript')
-rw-r--r-- | src/mongo/util/net/SConscript | 21 |
1 files changed, 19 insertions, 2 deletions
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', |