We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent698e697 commit682467eCopy full SHA for 682467e
coderd/tailnet.go
@@ -99,8 +99,14 @@ func NewServerTailnet(
99
transport:tailnetTransport.Clone(),
100
}
101
tn.transport.DialContext=tn.dialContext
102
-tn.transport.MaxIdleConnsPerHost=10
+// These options are mostly just picked at random, and they can likely be
103
+// fine tuned further. Generally, users are running applications in dev mode
104
+// which can generate hundreds of requests per page load, so we increased
105
+// MaxIdleConnsPerHost from 2 to 6 and removed the limit of total idle
106
+// conns.
107
+tn.transport.MaxIdleConnsPerHost=6
108
tn.transport.MaxIdleConns=0
109
+tn.transport.IdleConnTimeout=10*time.Minute
110
// We intentionally don't verify the certificate chain here.
111
// The connection to the workspace is already established and most
112
// apps are already going to be accessed over plain HTTP, this config