[Qt-interest] QNetworkAccessManager Keep-Alive
Антон Сердюков
uksus70 at gmail.com
Thu May 28 09:28:38 CEST 2009
Hello everybody!
The question is inspired by the lack of documentation on the subject: how
does the QNetworkAccessManager realize keep-alive mechanism?
The experiment say: If the reply is deleted (deleteLater really) within
finished() signal, the connection will be closed. Otherwise this connection
is reused for next request. The logic is not obvious.Could someone explain
the logic more or less clearly? How to make persistent connections work?
My application is a server and it needs to send requests to another server
(IIS) via HTTP. The intervals between requests are indeterminate. I want
QNetworkAccessManager to establish one or several persistent connections and
use them for all requests. If connection expires after some idle time - it's
not problem, it's good. I just don't want to have 10 new outgoing
connections each second.
Regards,
Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090528/3a39f3ad/attachment.html
More information about the Qt-interest-old
mailing list