|
|
@@ -1,40 +0,0 @@
|
|
|
-From f1a49736010170a70123db07ca41256ba92c0002 Mon Sep 17 00:00:00 2001
|
|
|
-From: klzgrad <[email protected]>
|
|
|
-Date: Sat, 3 Oct 2020 08:54:59 +0800
|
|
|
-Subject: [PATCH] Remove concurrency limit
|
|
|
-
|
|
|
----
|
|
|
- src/net/tools/naive/naive_proxy.cc | 3 +--
|
|
|
- src/net/tools/naive/naive_proxy_bin.cc | 2 +-
|
|
|
- 2 files changed, 2 insertions(+), 3 deletions(-)
|
|
|
-
|
|
|
---- a/src/net/tools/naive/naive_proxy.cc
|
|
|
-+++ b/src/net/tools/naive/naive_proxy.cc
|
|
|
-@@ -5,7 +5,6 @@
|
|
|
-
|
|
|
- #include "net/tools/naive/naive_proxy.h"
|
|
|
-
|
|
|
--#include <algorithm>
|
|
|
- #include <utility>
|
|
|
-
|
|
|
- #include "base/bind.h"
|
|
|
-@@ -39,7 +38,7 @@ NaiveProxy::NaiveProxy(std::unique_ptr<S
|
|
|
- protocol_(protocol),
|
|
|
- listen_user_(listen_user),
|
|
|
- listen_pass_(listen_pass),
|
|
|
-- concurrency_(std::min(4, std::max(1, concurrency))),
|
|
|
-+ concurrency_(concurrency),
|
|
|
- resolver_(resolver),
|
|
|
- session_(session),
|
|
|
- net_log_(
|
|
|
---- a/src/net/tools/naive/naive_proxy_bin.cc
|
|
|
-+++ b/src/net/tools/naive/naive_proxy_bin.cc
|
|
|
-@@ -296,7 +296,7 @@ bool ParseCommandLine(const CommandLine&
|
|
|
-
|
|
|
- if (!cmdline.concurrency.empty()) {
|
|
|
- if (!base::StringToInt(cmdline.concurrency, ¶ms->concurrency) ||
|
|
|
-- params->concurrency < 1 || params->concurrency > 4) {
|
|
|
-+ params->concurrency < 1) {
|
|
|
- std::cerr << "Invalid concurrency" << std::endl;
|
|
|
- return false;
|
|
|
- }
|