Merge branch 'jetty-10.0.x' into jetty-10.0.x-3129-websocket

This commit is contained in:
Greg Wilkins 2018-12-11 17:02:16 +11:00
commit 252bb5dd72
16 changed files with 27 additions and 17 deletions

View File

@ -22,7 +22,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-reads org.eclipse.jetty.alpn.java.server=org.eclipse.jetty.server --add-reads org.eclipse.jetty.alpn.java.server=org.eclipse.jetty.server
</argLine> </argLine>
</configuration> </configuration>

View File

@ -21,7 +21,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-opens org.eclipse.jetty.annotations/org.eclipse.jetty.annotations.resources=org.eclipse.jetty.plus --add-opens org.eclipse.jetty.annotations/org.eclipse.jetty.annotations.resources=org.eclipse.jetty.plus
</argLine> </argLine>
</configuration> </configuration>

View File

@ -19,7 +19,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-reads org.eclipse.jetty.client=javax.servlet.api --add-reads org.eclipse.jetty.client=javax.servlet.api
--add-modules java.security.jgss --add-modules java.security.jgss
--add-modules javax.servlet.api --add-modules javax.servlet.api

View File

@ -21,7 +21,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-modules org.eclipse.jetty.jmx --add-modules org.eclipse.jetty.jmx
--add-reads org.eclipse.jetty.deploy=org.eclipse.jetty.http --add-reads org.eclipse.jetty.deploy=org.eclipse.jetty.http
</argLine> </argLine>

View File

@ -44,7 +44,10 @@
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine>@{argLine} --add-modules javax.servlet.api</argLine> <argLine>
@{argLine} ${jetty.surefire.argLine}
--add-modules javax.servlet.api
</argLine>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>

View File

@ -21,7 +21,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-reads org.eclipse.jetty.http2.client=javax.servlet.api --add-reads org.eclipse.jetty.http2.client=javax.servlet.api
--add-modules javax.servlet.api --add-modules javax.servlet.api
</argLine> </argLine>

View File

@ -21,7 +21,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-reads org.eclipse.jetty.http2.http.client.transport=javax.servlet.api --add-reads org.eclipse.jetty.http2.http.client.transport=javax.servlet.api
--add-modules javax.servlet.api --add-modules javax.servlet.api
</argLine> </argLine>

View File

@ -21,7 +21,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-reads org.eclipse.jetty.http2.server=javax.servlet.api --add-reads org.eclipse.jetty.http2.server=javax.servlet.api
--add-modules javax.servlet.api --add-modules javax.servlet.api
</argLine> </argLine>

View File

@ -18,7 +18,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-opens org.eclipse.jetty.jmx/org.eclipse.jetty.jmx=ALL-UNNAMED --add-opens org.eclipse.jetty.jmx/org.eclipse.jetty.jmx=ALL-UNNAMED
--add-opens org.eclipse.jetty.jmx/org.eclipse.jetty.util.log.jmx=ALL-UNNAMED --add-opens org.eclipse.jetty.jmx/org.eclipse.jetty.util.log.jmx=ALL-UNNAMED
</argLine> </argLine>

View File

@ -22,7 +22,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--patch-module javax.servlet.api=${jetty-schemas-jar} --patch-module javax.servlet.api=${jetty-schemas-jar}
</argLine> </argLine>
</configuration> </configuration>

View File

@ -23,7 +23,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-modules javax.servlet.api --add-modules javax.servlet.api
--add-modules org.eclipse.jetty.util --add-modules org.eclipse.jetty.util
--add-modules org.eclipse.jetty.io --add-modules org.eclipse.jetty.io

View File

@ -316,10 +316,10 @@ public class DoSFilter implements Filter
// Get a rate tracker associated with this request, and record one hit. // Get a rate tracker associated with this request, and record one hit.
tracker = getRateTracker(request); tracker = getRateTracker(request);
// Calculate the rate and check it is over the allowed limit // Calculate the rate and check if it is over the allowed limit
final boolean overRateLimit = tracker.isRateExceeded(System.currentTimeMillis()); final boolean overRateLimit = tracker.isRateExceeded(System.currentTimeMillis());
// Pass it through if we are not currently over the rate limit. // Pass it through if we are not currently over the rate limit.
if (!overRateLimit) if (!overRateLimit)
{ {
if (LOG.isDebugEnabled()) if (LOG.isDebugEnabled())

View File

@ -64,7 +64,10 @@
<systemPropertyVariables> <systemPropertyVariables>
<mavenRepoPath>${settings.localRepository}</mavenRepoPath> <mavenRepoPath>${settings.localRepository}</mavenRepoPath>
</systemPropertyVariables> </systemPropertyVariables>
<argLine>@{argLine} --add-modules javax.servlet.api,org.slf4j</argLine> <argLine>
@{argLine} ${jetty.surefire.argLine}
--add-modules javax.servlet.api,org.slf4j
</argLine>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -44,7 +44,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-modules org.eclipse.jetty.jmx --add-modules org.eclipse.jetty.jmx
</argLine> </argLine>
<useManifestOnlyJar>false</useManifestOnlyJar> <useManifestOnlyJar>false</useManifestOnlyJar>

View File

@ -49,7 +49,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine> <argLine>
@{argLine} @{argLine} ${jetty.surefire.argLine}
--add-reads org.eclipse.jetty.websocket.javax.common=org.eclipse.jetty.websocket.javax.server --add-reads org.eclipse.jetty.websocket.javax.common=org.eclipse.jetty.websocket.javax.server
</argLine> </argLine>
</configuration> </configuration>

View File

@ -67,6 +67,8 @@
<!-- enable or not TestTracker junit5 extension i.e log message when test method is starting --> <!-- enable or not TestTracker junit5 extension i.e log message when test method is starting -->
<jetty.testtracker.log>false</jetty.testtracker.log> <jetty.testtracker.log>false</jetty.testtracker.log>
<jetty.surefire.argLine>-Dfile.encoding=UTF-8 -Duser.language=en -Duser.region=US -showversion -Xmx1g -Xms1g -Xlog:gc:stderr:time,level,tags</jetty.surefire.argLine>
<!-- some maven plugins versions --> <!-- some maven plugins versions -->
<maven.surefire.version>2.22.1</maven.surefire.version> <maven.surefire.version>2.22.1</maven.surefire.version>
<maven.compiler.plugin.version>3.8.0</maven.compiler.plugin.version> <maven.compiler.plugin.version>3.8.0</maven.compiler.plugin.version>
@ -590,7 +592,9 @@
<version>${maven.surefire.version}</version> <version>${maven.surefire.version}</version>
<configuration> <configuration>
<forkedProcessTimeoutInSeconds>3600</forkedProcessTimeoutInSeconds> <forkedProcessTimeoutInSeconds>3600</forkedProcessTimeoutInSeconds>
<argLine>@{argLine} -Dfile.encoding=UTF-8 -Duser.language=en -Duser.region=US -showversion -Xmx1g -Xms1g -XX:+PrintGCDetails</argLine> <argLine>
@{argLine} ${jetty.surefire.argLine}
</argLine>
<failIfNoTests>false</failIfNoTests> <failIfNoTests>false</failIfNoTests>
<forkCount>1</forkCount> <forkCount>1</forkCount>
<reuseForks>true</reuseForks> <!-- to work around crash at https://github.com/junit-team/junit5/issues/801 --> <reuseForks>true</reuseForks> <!-- to work around crash at https://github.com/junit-team/junit5/issues/801 -->