[Qt-interest] Subclass QNetworkRequest

Jason Wood jwood275 at googlemail.com
Mon Feb 22 23:20:14 CET 2010


Hi,

Is it possible to subclass QNetworkRequest to throttle outgoing data? It
doesn't seem to implement QIODevice so I'm not exactly sure how I could do
it, does anyone have any ideas? I was originally using a throttled QIODevice
as the data in the QNetworkAccessManager::post() method which is OK in
Windows but OSX seems to have a much larger buffer size and so buffering to
low speed (~5kB/s) causes the connection to timeout because the data is not
sent until the internal buffer is full. Please correct me if I'm wrong but
that does seem to be the case from my testing.

Thanks,

Jason.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100222/f2e14a0b/attachment.html 


More information about the Qt-interest-old mailing list