Skip to content

Commit d6975c4

Browse files
authored
Merge pull request #2584 from owncloud/lower_tus_size
lower TUS max chunk size from infinite to 0.1 GB
2 parents a378595 + 8659272 commit d6975c4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Enhancement: Lower TUS max chunk size
2+
3+
We've lowered the TUS max chunk size from infinite to 0.1GB so that chunking actually happens.
4+
5+
https://github.com/owncloud/ocis/pull/2584
6+
https://github.com/cs3org/reva/pull/2136

storage/pkg/flagset/frontend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func FrontendWithConfig(cfg *config.Config) []cli.Flag {
202202
},
203203
&cli.IntFlag{
204204
Name: "upload-max-chunk-size",
205-
Value: flags.OverrideDefaultInt(cfg.Reva.UploadMaxChunkSize, 0),
205+
Value: flags.OverrideDefaultInt(cfg.Reva.UploadMaxChunkSize, 1e+8), // 0.1 GB
206206
Usage: "Max chunk size in bytes to advertise to clients through capabilities, or 0 for unlimited",
207207
EnvVars: []string{"STORAGE_FRONTEND_UPLOAD_MAX_CHUNK_SIZE"},
208208
Destination: &cfg.Reva.UploadMaxChunkSize,

0 commit comments

Comments
 (0)