feat(config): enable multiple connections by default (#10151)

This changes the default number of connections from one to three (one
metadata + two data connections). This should give some advantages of
multiple connections, while also not being an overwhelming change for
larger installations. (Though those may need to tweak their settings
anyway, as always.)
This commit is contained in:
Jakob Borg
2025-05-30 22:04:55 +02:00
committed by GitHub
parent 79bac43800
commit 8e934a8c69
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/syncthing/syncthing/lib/protocol"
)
const defaultNumConnections = 1 // number of connections to use by default; may change in the future.
const defaultNumConnections = 3 // number of connections to use by default
type DeviceConfiguration struct {
DeviceID protocol.DeviceID `json:"deviceID" xml:"id,attr" nodefault:"true"`
+4
View File
@@ -21,3 +21,7 @@
efficient without it.
- A "default folder" is no longer created on first startup.
- Multiple connections are now used by default between v2 devices. The new
default value is to use three connections: one for index metadata and two
for data exchange.