Skip to content

Commit 36dfda0

Browse files
authored
Merge pull request #329 from fesse/master
fix: Increase maxPartCount in Tomcat connector
2 parents 3a183c7 + 7188e18 commit 36dfda0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/gretty-runner-tomcat/src/main/groovy/org/akhikhl/gretty/TomcatServerConfigurer.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class TomcatServerConfigurer {
105105
assert httpConn.setProperty('keepAliveTimeout', params.httpIdleTimeout.toString())
106106

107107
httpConn.maxPostSize = -1 // unlimited post size
108+
httpConn.maxPartCount = -1
108109

109110
if(newHttpConnector) {
110111
service.addConnector(httpConn)
@@ -185,6 +186,7 @@ class TomcatServerConfigurer {
185186
assert httpsConn.setProperty('keepAliveTimeout', params.httpsIdleTimeout.toString())
186187

187188
httpsConn.maxPostSize = -1 // unlimited
189+
httpsConn.maxPartCount = -1
188190

189191
if(newHttpsConnector) {
190192
service.addConnector(httpsConn)

0 commit comments

Comments
 (0)