aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-04-06 21:58:26 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-04-06 21:58:26 +0200
commitfc2614d88ccc3c938ea69fd6a8f4978bc9663e16 (patch)
treea4eb10b0554b5c4de0619092a68c4341e4c147b2 /lib
parenta8572345e7a30c96b8ede47e95af65ff2cdef86c (diff)
downloadlibquotient-fc2614d88ccc3c938ea69fd6a8f4978bc9663e16.tar.gz
libquotient-fc2614d88ccc3c938ea69fd6a8f4978bc9663e16.zip
BaseJob: disable pipelining
Longer running on RHEL/CentOS 8 leads to crashes that no more occur with disabled pipelining.
Diffstat (limited to 'lib')
-rw-r--r--lib/jobs/basejob.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp
index 65668521..dfc3d3dd 100644
--- a/lib/jobs/basejob.cpp
+++ b/lib/jobs/basejob.cpp
@@ -232,7 +232,9 @@ void BaseJob::Private::sendRequest()
req.setAttribute(QNetworkRequest::BackgroundRequestAttribute, inBackground);
req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
req.setMaximumRedirectsAllowed(10);
- req.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true);
+ // Pipelining doesn't fly quite well with SSL, occasionally crashing at
+ // what seems like an attempt to write to a closed channel.
+// req.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true);
req.setAttribute(QNetworkRequest::HTTP2AllowedAttribute, true);
Q_ASSERT(req.url().isValid());
for (auto it = requestHeaders.cbegin(); it != requestHeaders.cend(); ++it)