Make sure reading from a QIODevice is done before handling next request


HTTP/1.x can only handle responding to a single request at a time on
the same socket. Do not proceed to the next incoming request until
reading from a QIODevice is done to prevent out of order writes.

Failing test now succeeds.

Task-number: QTBUG-138611
Pick-to: 6.10 6.9 6.8
Change-Id: Ia0eb96b57080c8373960932fac217315f621cbfe
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
commit114daf0d132eea7ca78699049d9b15172f103939
parent0563f1c42ed8f5ad79b48f588a245883def1a8df
authorØystein Heskestad <oystein.heskestad@qt.io>
committerØystein Heskestad <oystein.heskestad@qt.io>
commit timeWed, 23 Jul 2025 11:49:25 +0200