Add messages to StreamExceptions thrown in StandardSession and StandardStream
This commit is contained in:
parent
6bc8bab92d
commit
b76669434f
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue