diff --git a/cmd/qfs/main.go b/cmd/qfs/main.go index c147c53..acce2ee 100644 --- a/cmd/qfs/main.go +++ b/cmd/qfs/main.go @@ -332,7 +332,9 @@ func setConfigDefaults(cfg *config.Config) { cfg.Server.ReadTimeout = 30 * time.Second } if cfg.Server.WriteTimeout == 0 { - cfg.Server.WriteTimeout = 30 * time.Second + // Sync operations (pricelist download over slow VPN) can take several minutes. + // Loopback-only binding means there is no risk of holding connections from external clients. + cfg.Server.WriteTimeout = 10 * time.Minute } if cfg.Backup.Time == "" { cfg.Backup.Time = "00:00" @@ -394,7 +396,7 @@ func ensureDefaultConfigFile(configPath string) error { port: 8080 mode: "release" read_timeout: 30s - write_timeout: 30s + write_timeout: 10m backup: time: "00:00"