diff options
| author | Markus Goetz <markus@woboq.com> | 2021-06-14 17:40:06 +0200 |
|---|---|---|
| committer | Markus Goetz <markus@woboq.com> | 2021-07-27 17:16:58 +0200 |
| commit | 85cfbae1d62617fdc452680813f993e812bb55dd (patch) | |
| tree | 647525ccc36d6b3ff707f206869f882ff104a4c3 /src/network/access/qnetworkrequest.cpp | |
| parent | 5597e26256f37168b1da2bf8b6c1a9ab7ab2618c (diff) | |
QNAM: Allow to configure when connections to a host are torn down
This introduces a new attribute that allows behavior to keep
the TCP connection(s) to a HTTP1/HTTP2 host longer or shorter
than the default of 120 seconds.
Note that the server might still close the connection earlier.
Fixes: QTBUG-20726
Fixes: QTBUG-91440
Change-Id: I7da64230a78c642c12c0ddbe6b678cf17c3aafde
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/network/access/qnetworkrequest.cpp')
| -rw-r--r-- | src/network/access/qnetworkrequest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/access/qnetworkrequest.cpp b/src/network/access/qnetworkrequest.cpp index f6a6f096703..688c29935cd 100644 --- a/src/network/access/qnetworkrequest.cpp +++ b/src/network/access/qnetworkrequest.cpp @@ -319,6 +319,12 @@ QT_BEGIN_NAMESPACE the QNetworkReply after having emitted "finished". (This value was introduced in 5.14.) + \value ConnectionCacheExpiryTimeoutSecondsAttribute + Requests only, type: QMetaType::Int + To set when the TCP connections to a server (HTTP1 and HTTP2) should + be closed after the last pending request had been processed. + (This value was introduced in 6.3.) + \value User Special type. Additional information can be passed in QVariants with types ranging from User to UserMax. The default |
