Fixed infinite loop when receiving a SETTINGS frame.

This commit is contained in:
Simone Bordet 2014-06-17 18:51:09 +02:00
parent 2b494fde0e
commit 82a2dfd03a
2 changed files with 5 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public class FlowControlTest extends AbstractTest
}
});
// Two SETTINGS frames, the initial one and the one we send.
// Two SETTINGS frames, the initial one and the one we send from the server.
final CountDownLatch settingsLatch = new CountDownLatch(2);
Session client = newClient(new Session.Listener.Adapter()
{

View File

@ -163,6 +163,10 @@ public abstract class HTTP2Session implements ISession, Parser.Listener
{
if (LOG.isDebugEnabled())
LOG.debug("Received {}", frame);
if (frame.isReply())
return false;
Map<Integer, Integer> settings = frame.getSettings();
if (settings.containsKey(SettingsFrame.MAX_CONCURRENT_STREAMS))
{