Processing of frames is now done only if we did not send go_away.

This commit is contained in:
Simone Bordet 2012-01-27 13:42:13 +01:00
parent 2b6d997320
commit 29c98f4b37
1 changed files with 13 additions and 2 deletions

View File

@ -215,11 +215,16 @@ public class StandardSession implements ISession, Parser.Listener, ISession.Cont
{
logger.debug("Processing {}", frame);
if (closed.get())
{
logger.debug("Skipped processing of {}", frame);
return;
}
switch (frame.getType())
{
case SYN_STREAM:
{
if (!closed.get())
onSyn((SynStreamFrame)frame);
break;
}
@ -275,6 +280,12 @@ public class StandardSession implements ISession, Parser.Listener, ISession.Cont
{
logger.debug("Processing {}, {} data bytes", frame, data.remaining());
if (closed.get())
{
logger.debug("Skipped processing of {}", frame);
return;
}
int streamId = frame.getStreamId();
IStream stream = streams.get(streamId);
if (stream == null)