From 9af8eb9fa7592661ad33ef59647912b524a1ce79 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Mon, 16 Jun 2014 15:45:10 +0200 Subject: [PATCH] Replying to SETTINGS frame as requested by the specification. --- .../src/main/java/org/eclipse/jetty/http2/HTTP2Session.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java index 9de8c5384ef..ee949e45949 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java @@ -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.emptyMap(), true); + settings(reply, disconnectCallback); return false; }