Replying to SETTINGS frame as requested by the specification.

This commit is contained in:
Simone Bordet 2014-06-16 15:45:10 +02:00
parent 849360717e
commit 9af8eb9fa7
1 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import java.nio.charset.StandardCharsets;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ -176,6 +177,10 @@ public abstract class HTTP2Session implements ISession, Parser.Listener
}
// TODO: handle other settings
notifySettings(this, frame);
// SPEC: SETTINGS frame MUST be replied.
SettingsFrame reply = new SettingsFrame(Collections.<Integer, Integer>emptyMap(), true);
settings(reply, disconnectCallback);
return false;
}