Skip to content

Commit

Permalink
Fix handling of httpsIdleTimeout in Tomcat (#144)
Browse files Browse the repository at this point in the history
Calling toString() is mandatory, otherwise the call does not
match the method signature of setProperty(String, String).
This is now analog to the treatment of httpIdleTimeout, which
already stringifies the property value.
  • Loading branch information
f4lco committed May 8, 2020
1 parent baf12ad commit 9e21f1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions integrationTests/helloGretty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ gretty {
// Possible servletContainer values are 'jetty7', 'jetty8', 'jetty9', 'tomcat85', 'tomcat9'. Default is 'jetty9'.
// servletContainer = 'tomcat8'
// httpsEnabled = true
httpIdleTimeout = 424242
}

war {
Expand Down
1 change: 1 addition & 0 deletions integrationTests/helloGrettySecure/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {
gretty {
httpEnabled = false
httpsEnabled = true
httpsIdleTimeout = 424242
// Possible servletContainer values are 'jetty7', 'jetty8', 'jetty9', 'tomcat85', 'tomcat9'. Default is 'jetty9'.
servletContainer = 'jetty9'
realm 'auth'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class TomcatServerConfigurer {
sslConfig.truststorePassword = params.sslTrustStorePassword

if(params.httpsIdleTimeout)
httpsConn.setProperty('keepAliveTimeout', params.httpsIdleTimeout)
httpsConn.setProperty('keepAliveTimeout', params.httpsIdleTimeout.toString())

httpsConn.setProperty('maxPostSize', '0') // unlimited

Expand Down

0 comments on commit 9e21f1d

Please sign in to comment.