Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
This commit is contained in:
commit
7f8a1157af
|
@ -1137,6 +1137,10 @@ public class AsyncIOServletTest extends AbstractTest
|
|||
break;
|
||||
case H2C:
|
||||
case H2:
|
||||
// In case of HTTP/2, we not only send the request, but also the preface and
|
||||
// SETTINGS frames. SETTINGS frame need to be replied, so we want to wait to
|
||||
// write the reply before shutting output down, so that the test does not fail.
|
||||
Thread.sleep(1000);
|
||||
Session session = ((HttpConnectionOverHTTP2)connection).getSession();
|
||||
((HTTP2Session)session).getEndPoint().shutdownOutput();
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue