diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc
index fb985c97b..a509d6f4d 100644
--- a/src/libstore/misc.cc
+++ b/src/libstore/misc.cc
@@ -102,7 +102,8 @@ void Store::queryMissing(const std::vector<DerivedPath> & targets,
     downloadSize_ = narSize_ = 0;
 
     // FIXME: make async.
-    ThreadPool pool(fileTransferSettings.httpConnections);
+	// https://github.com/NixOS/nix/issues/5118
+    ThreadPool pool(300);
 
     struct State
     {
