From f04f486f94a6f46bafc15c0bf696b6bba40dae6d Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Mon, 24 Jul 2017 11:35:41 +0200 Subject: [PATCH] Fixes #1687 - Missing callback notification when channel not found. --- .../eclipse/jetty/http2/server/HTTP2ServerConnection.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerConnection.java b/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerConnection.java index a1f9ed0d394..1d674882c4a 100644 --- a/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerConnection.java +++ b/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerConnection.java @@ -18,7 +18,7 @@ package org.eclipse.jetty.http2.server; -import java.io.Closeable; +import java.io.IOException; import java.nio.ByteBuffer; import java.util.ArrayDeque; import java.util.ArrayList; @@ -177,6 +177,10 @@ public class HTTP2ServerConnection extends HTTP2Connection implements Connection if (task != null) offerTask(task, false); } + else + { + callback.failed(new IOException("channel_not_found")); + } } public void onTrailers(IStream stream, HeadersFrame frame)