Remove concurrency limit

This commit is contained in:
klzgrad 2020-10-03 08:54:59 +08:00
parent 33ddf2955b
commit f1a4973601
2 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,6 @@
#include "net/tools/naive/naive_proxy.h"
#include <algorithm>
#include <utility>
#include "base/bind.h"
@ -35,7 +34,7 @@ NaiveProxy::NaiveProxy(std::unique_ptr<ServerSocket> listen_socket,
const NetworkTrafficAnnotationTag& traffic_annotation)
: listen_socket_(std::move(listen_socket)),
protocol_(protocol),
concurrency_(std::min(4, std::max(1, concurrency))),
concurrency_(concurrency),
resolver_(resolver),
session_(session),
net_log_(

View File

@ -289,7 +289,7 @@ bool ParseCommandLine(const CommandLine& cmdline, Params* params) {
if (!cmdline.concurrency.empty()) {
if (!base::StringToInt(cmdline.concurrency, &params->concurrency) ||
params->concurrency < 1 || params->concurrency > 4) {
params->concurrency < 1) {
std::cerr << "Invalid concurrency" << std::endl;
return false;
}