# Number of established connections to the routers

**URL:** https://openziti.discourse.group/t/number-of-established-connections-to-the-routers/4478
**Category:** zrok
**Created:** [May 2, 2025, 10:26pm UTC](https://openziti.discourse.group/t/number-of-established-connections-to-the-routers/4478 "2025-05-02T22:26:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Rantanplan](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/rantanplan/32/3353_2.png) [@Rantanplan](https://openziti.discourse.group/u/Rantanplan)
#### Post date: [May 2, 2025, 10:26pm UTC](https://openziti.discourse.group/t/number-of-established-connections-to-the-routers/4478/1 "2025-05-02T22:26:39Z")

</div>

Some of my users have a very slow network \< 10Mbit/s.

```auto

curl -o /dev/null http://domain.name/10G.dat
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
0 682M 0 5580k 0 0 552k 0 0:21:05 0:00:10 0:20:55 633k

curl -o /dev/null http://domain.name/10G.dat
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  4 682M 4 28.7M 0 0 1166k 0 0:09:59 0:00:25 0:09:34 246k

```

Firefox (FF) uses zrok's private socks5 proxy via socks5://localhost:9191. Tests show that zrok makes about 30 tcp connections/router. Apparently FF asks him to do so.  
Having 7 routers a user gets 210 established connections on his linux pc.

Is it bad? And if there are any problems how we can decrease this number.

FF has a parameter _network.http.max-persistent-connections-per-proxy=32_. I dont see any effects of this parameter. FF create about 30 connections to zrok.  
But on a different machine zrok has only 2 connections/router with the same number of connections created by FF.

On the share side I have a lot of similar messages:

```auto
May 03 08:02:25 {"file":"/__w/zrok/zrok/endpoints/socks/socks5.go:117","func":"github.com/openziti/zrok/endpoints/socks.(*Server).Serve.func1","level":"info","msg":"client connection failed: could not read packet header","time":"2025-05-03T08:02:25.291Z"}

```
