Forráskód Böngészése

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 hónapja
szülő
commit
8e934a8c69
2 módosított fájl, 5 hozzáadás és 1 törlés
  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"
 	"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 {
 type DeviceConfiguration struct {
 	DeviceID                 protocol.DeviceID `json:"deviceID" xml:"id,attr" nodefault:"true"`
 	DeviceID                 protocol.DeviceID `json:"deviceID" xml:"id,attr" nodefault:"true"`

+ 4 - 0
relnotes/v2.0.md

@@ -21,3 +21,7 @@
   efficient without it.
   efficient without it.
 
 
 - A "default folder" is no longer created on first startup.
 - 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.