Merge pull request #13340 from brave/issues/22851

Increase websocket pool limit to 30.
This commit is contained in:
Aleksey Khoroshilov
2022-05-16 22:43:18 +07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
@@ -30,7 +30,7 @@
namespace {
const int kWebSocketsPoolLimit = 10;
const int kWebSocketsPoolLimit = 30;
constexpr char kWsOpenScript[] = R"(
if (typeof sockets == 'undefined') {
@@ -49,7 +49,7 @@ String GetResourceIdInUse(const SecurityOrigin* origin,
int GetResourceLimit(ResourcePoolLimiter::ResourceType resource_type) {
switch (resource_type) {
case ResourcePoolLimiter::ResourceType::kWebSocket:
return 10;
return 30;
}
NOTREACHED();
return 0;