aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Harrigan2013-07-26 10:36:34 (EDT)
committerJesse McConnell2013-07-26 11:24:03 (EDT)
commit192f2d700236dcd9c5954b65577e995c27306110 (patch)
tree9ac1ba8175367bc05a32d7e52daf2b0d07b703d1
parent2be4ca5921005ad09432038fe7acdc7c89cb1cce (diff)
downloadorg.eclipse.jetty.project-192f2d700236dcd9c5954b65577e995c27306110.zip
org.eclipse.jetty.project-192f2d700236dcd9c5954b65577e995c27306110.tar.gz
org.eclipse.jetty.project-192f2d700236dcd9c5954b65577e995c27306110.tar.bz2
BUG-413812
Mark RateTracker as Serializable to allow it to be stored in a Session that is eventually persisted in a distributed memory platform. Signed-off-by: David Harrigan <dharrigan@gmail.com>
-rw-r--r--jetty-servlets/src/main/java/org/eclipse/jetty/servlets/DoSFilter.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/DoSFilter.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/DoSFilter.java
index ebc99d5..737bc84 100644
--- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/DoSFilter.java
+++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/DoSFilter.java
@@ -19,6 +19,7 @@
package org.eclipse.jetty.servlets;
import java.io.IOException;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -1025,8 +1026,10 @@ public class DoSFilter implements Filter
* A RateTracker is associated with a connection, and stores request rate
* data.
*/
- class RateTracker extends Timeout.Task implements HttpSessionBindingListener, HttpSessionActivationListener
+ class RateTracker extends Timeout.Task implements HttpSessionBindingListener, HttpSessionActivationListener, Serializable
{
+ private static final long serialVersionUID = 3534663738034577872L;
+
transient protected final String _id;
transient protected final int _type;
transient protected final long[] _timestamps;