Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-tus
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-tus
Commits
7d5f638d
Unverified
Commit
7d5f638d
authored
May 20, 2022
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce multipart argument
parent
a35310c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
tus_servers.h
src/tus_servers.h
+1
-0
vmod_tus.c
src/vmod_tus.c
+1
-0
vmod_tus.vcc
src/vmod_tus.vcc
+6
-1
No files found.
src/tus_servers.h
View file @
7d5f638d
...
...
@@ -49,6 +49,7 @@ struct VPFX(tus_server) {
char
*
basedir
;
char
*
schemeauth
;
VCL_BYTES
max
;
VCL_BYTES
multipart
;
VCL_DURATION
expires
;
int
basefd
;
struct
tus_files
files
[
1
];
...
...
src/vmod_tus.c
View file @
7d5f638d
...
...
@@ -263,6 +263,7 @@ tus_server__init(VRT_CTX, struct VPFX(tus_server) **tussrvp,
return
;
tussrv
->
max
=
args
->
max
;
tussrv
->
multipart
=
args
->
multipart
;
tussrv
->
expires
=
args
->
expires
;
tussrv
->
digest
=
d
;
...
...
src/vmod_tus.vcc
View file @
7d5f638d
...
...
@@ -113,7 +113,8 @@ $Object server(
BYTES max=1073741824,
DURATION expires=86400,
[STRING basedir],
[STRING name_hash])
[STRING name_hash],
BYTES multipart=5242880)
Declare a tus server at the given ``schemeauth``, which is the
protocol and servername, like ``https://tus.io``.
...
...
@@ -153,6 +154,10 @@ as the last part of the url when constructing the backend ``PUT``. For
``Upload-Concat: final`` uploads, this name is also used as the
``Location`` returned to the client.
The ``multipart`` argument specifies the size of multipart uploads:
For each chunk of this size, a separate backend request will be
issued.
$Method BOOL .recv([STRING url], [STRING id])
Process a tus request.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment