[Qt-interest] Concurrent qnetworkrequest's to same domain
Marcus Williams
marcus-qt at quintic.co.uk
Wed Jul 22 14:44:27 CEST 2009
Hi -
Reading around the docs and qt blog on QNetworkAccessManager I see that
it obeys the http spec in limiting outgoing connections to a max of 2
per domain. If I want to bump this up does the act of using more than
one get around this limit (so do I get 2 per manager) or is this 2
outgoing connections to a single domain shared across all managers?
I have a download manager thread in a client talking to a single assets
server. It uses a single networkaccessmanager object. All download
requests are queued up as network requests on this object and the thread
deals with the download signals as required.
If I can bump the concurrency up by having a pool of
networkaccessmanagers that I push requests to this would be great, but
my worry then is whether the signals I get from the network managers are
thread safe. So if I connect all the qnetworkreply::finished() signals
to the same slot in my download manager thread would I ever get a
finished() signal during the processing of another networkaccessmanagers
finished() signal?
Thanks
Marcus
More information about the Qt-interest-old
mailing list