Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-autograde
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CS-107
moodle-autograde
Commits
fbdc2828
Commit
fbdc2828
authored
8 months ago
by
Hamza Remmal
Browse files
Options
Downloads
Plain Diff
Merge branch 'mb/backport-limits' into '1.0.x'
Backport "Increase limit for downloads" See merge request
!270
parents
07af49de
0d3e5240
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!270
Backport "Increase limit for downloads"
Pipeline
#220092
failed
8 months ago
Stage: prepare-pipeline
Stage: build
Stage: test
Stage: coverage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
autograde-submission-manager/src/main/java/ch/epfl/autograde/client/v1/AutogradeClientFactory.java
+4
-3
4 additions, 3 deletions
...a/ch/epfl/autograde/client/v1/AutogradeClientFactory.java
with
4 additions
and
3 deletions
autograde-submission-manager/src/main/java/ch/epfl/autograde/client/v1/AutogradeClientFactory.java
+
4
−
3
View file @
fbdc2828
...
...
@@ -19,6 +19,7 @@ import reactor.netty.http.client.HttpClient;
* @author Hamza REMMAL (hamza.remmal@epfl.ch)
*/
public
final
class
AutogradeClientFactory
{
private
static
final
int
MAX_IN_MEMORY_SIZE
=
100
*
1024
*
1024
;
// 100 MiB
/**
* ???
...
...
@@ -30,14 +31,14 @@ public final class AutogradeClientFactory {
var
http
=
HttpClient
.
create
()
.
httpResponseDecoder
(
spec
->
spec
.
maxHeaderSize
(
32
*
1024
)
// 32 kb
.
h2cMaxContentLength
(
5
*
1024
*
1024
)
// 5 MB
spec
.
maxHeaderSize
(
MAX_IN_MEMORY_SIZE
)
.
h2cMaxContentLength
(
MAX_IN_MEMORY_SIZE
)
);
var
builder
=
WebClient
.
builder
()
.
baseUrl
(
url
)
.
codecs
(
conf
->
conf
.
defaultCodecs
().
maxInMemorySize
(
10
*
1024
*
1024
)
conf
.
defaultCodecs
().
maxInMemorySize
(
MAX_IN_MEMORY_SIZE
)
)
.
clientConnector
(
new
ReactorClientHttpConnector
(
http
))
.
defaultHeader
(
CONTENT_TYPE
,
APPLICATION_JSON_VALUE
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment