qt5base-lts/tests/auto/network/access/http2
Timur Pocheptsov a217188fe0 tst_Http2 auto-test: stop sending DATA frames if test failed
Unlike QNAM, our toy http2 server sends payload as one big chunk as soon as
it fits in the receive window's size. Internally, 'frame writer' splits this
payload into many DATA frames of the appropriate size (imposed either by the
default value or the one from the client's SETTINGS frame). If some test fails,
we can end up with a server waiting for the writer to send all the DATA frames
though it is not needed anymore - there is nobody to receive them after a failure.
This patch moves such a loop into the test server instead and stops the loop early
if needed.

Change-Id: Iea2dcd718d8f83386fd16004807f6447bf999435
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2018-06-04 13:38:04 +00:00
..
certs HTTP2 - autotest 2016-07-14 10:20:36 +00:00
http2.pro h2 auto test - replace QEventLoop (and QTimer) with QTestEventLoop 2018-04-18 14:18:38 +00:00
http2srv.cpp tst_Http2 auto-test: stop sending DATA frames if test failed 2018-06-04 13:38:04 +00:00
http2srv.h tst_Http2 auto-test: stop sending DATA frames if test failed 2018-06-04 13:38:04 +00:00
tst_http2.cpp tst_Http2 auto-test: stop sending DATA frames if test failed 2018-06-04 13:38:04 +00:00