Skip to content

Commit

Permalink
lower TUS max chunk size from infinite to 0.1 GB
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Oct 6, 2021
1 parent 2932b7b commit 8659272
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/lower-tus-chunk-size.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Lower TUS max chunk size

We've lowered the TUS max chunk size from infinite to 0.1GB so that chunking actually happens.

https://github.com/owncloud/ocis/pull/2584
https://github.com/cs3org/reva/pull/2136
2 changes: 1 addition & 1 deletion storage/pkg/flagset/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func FrontendWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.IntFlag{
Name: "upload-max-chunk-size",
Value: flags.OverrideDefaultInt(cfg.Reva.UploadMaxChunkSize, 0),
Value: flags.OverrideDefaultInt(cfg.Reva.UploadMaxChunkSize, 1e+8), // 0.1 GB
Usage: "Max chunk size in bytes to advertise to clients through capabilities, or 0 for unlimited",
EnvVars: []string{"STORAGE_FRONTEND_UPLOAD_MAX_CHUNK_SIZE"},
Destination: &cfg.Reva.UploadMaxChunkSize,
Expand Down

0 comments on commit 8659272

Please sign in to comment.