aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2012-11-16 06:50:32 (EST)
committerThomas Becker2012-11-16 06:50:32 (EST)
commitb76669434feb6a2d6e42d489ce2703c13d2c4a7d (patch)
tree237d70427c4ddd611ae86046aaff1215009124e2
parent6bc8bab92d6d4b8b25deec6129bc9667149e8cc3 (diff)
downloadorg.eclipse.jetty.project-b76669434feb6a2d6e42d489ce2703c13d2c4a7d.zip
org.eclipse.jetty.project-b76669434feb6a2d6e42d489ce2703c13d2c4a7d.tar.gz
org.eclipse.jetty.project-b76669434feb6a2d6e42d489ce2703c13d2c4a7d.tar.bz2
Add messages to StreamExceptions thrown in StandardSession and StandardStream
-rw-r--r--jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardSession.java3
-rw-r--r--jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardStream.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardSession.java b/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardSession.java
index adc8376..506dfbe 100644
--- a/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardSession.java
+++ b/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardSession.java
@@ -911,7 +911,8 @@ public class StandardSession implements ISession, Parser.Listener, Callback<Stan
queue.remove(i);
if (stream != null && stream.isReset())
{
- frameBytes.fail(new StreamException(stream.getId(),StreamStatus.INVALID_STREAM));
+ frameBytes.fail(new StreamException(stream.getId(),StreamStatus.INVALID_STREAM,
+ "Stream: " + stream + " is reset!"));
return;
}
break;
diff --git a/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardStream.java b/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardStream.java
index 42b6b07..4f4fc0b 100644
--- a/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardStream.java
+++ b/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardStream.java
@@ -329,7 +329,8 @@ public class StandardStream implements IStream
{
if (isClosed() || isReset())
{
- callback.failed(this, new StreamException(getId(), StreamStatus.STREAM_ALREADY_CLOSED));
+ callback.failed(this, new StreamException(getId(), StreamStatus.STREAM_ALREADY_CLOSED,
+ "Stream: " + this + " already closed or reset!"));
return;
}
PushSynInfo pushSynInfo = new PushSynInfo(getId(), synInfo);