Skip to content

Commit

Permalink
start with more connection requests
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Apr 6, 2024
1 parent 7406087 commit 4cc5083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tunnels/client/preconnect/preconnect_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ tunnel_t *newPreConnectClient(node_instance_context_t *instance_info)

getIntFromJsonObject(&(state->min_unused_cons), settings, "minimum-unused");

state->min_unused_cons = min(max(threads_count * 2, state->min_unused_cons), 128);
state->connection_per_thread = state->min_unused_cons / threads_count;
state->min_unused_cons = min(max(threads_count * 2, state->min_unused_cons), 9999999);
state->connection_per_thread = min(4,state->min_unused_cons / threads_count);

tunnel_t *t = newTunnel();
t->state = state;
Expand Down

0 comments on commit 4cc5083

Please sign in to comment.