From 8e934a8c690431d58e68db6b40ac5b7e544673c3 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 30 May 2025 22:04:55 +0200 Subject: [PATCH] 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.) --- lib/config/deviceconfiguration.go | 2 +- relnotes/v2.0.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/config/deviceconfiguration.go b/lib/config/deviceconfiguration.go index b12514175..28a51fe9b 100644 --- a/lib/config/deviceconfiguration.go +++ b/lib/config/deviceconfiguration.go @@ -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"` diff --git a/relnotes/v2.0.md b/relnotes/v2.0.md index d285f6603..3b2a736ec 100644 --- a/relnotes/v2.0.md +++ b/relnotes/v2.0.md @@ -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.