瀏覽代碼

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.)
Jakob Borg 4 月之前
父節點
當前提交
8e934a8c69
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 1 1
      lib/config/deviceconfiguration.go
  2. 4 0
      relnotes/v2.0.md

+ 1 - 1
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"`

+ 4 - 0
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.