Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2013-12-16 00:34:19 +0000
committerGreg Wilkins2013-12-16 00:34:19 +0000
commitcf3acd376fb1003fbd50ce5a346fb67698a435d0 (patch)
tree9c3e94922f95bc43e324a81c0caa2e3327d8588b
parent8d621a9331b71f030e627b7efe9388fbbfb2973b (diff)
downloadorg.eclipse.jetty.project-cf3acd376fb1003fbd50ce5a346fb67698a435d0.tar.gz
org.eclipse.jetty.project-cf3acd376fb1003fbd50ce5a346fb67698a435d0.tar.xz
org.eclipse.jetty.project-cf3acd376fb1003fbd50ce5a346fb67698a435d0.zip
424043 - IteratingCallback Idle race.
restored support for the old style usage where the callback is scheduled externally without a call to iterate()
-rw-r--r--jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java b/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java
index d063f32eaf..73db074d75 100644
--- a/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java
+++ b/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java
@@ -244,6 +244,10 @@ public abstract class IteratingCallback implements Callback
// called, and we just return.
return;
}
+ case INACTIVE:
+ iterate(); // TODO, remove support for the old style, where the callback is schedule externally, without a call to iterate()!
+ return;
+
default:
{
throw new IllegalStateException(toString());

Back to the top