[Qt-interest] Subclass QNetworkRequest

Markus Goetz Markus.Goetz at nokia.com
Tue Feb 23 08:57:59 CET 2010


ext Thiago Macieira wrote:
> Em Terça-feira 23. Fevereiro 2010, às 08.39.38, Markus Goetz escreveu:
>   
>> ext Thiago Macieira wrote:
>>     
>>>> 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.
>>>>         
>> Should not happen. The OS should send as soon as it has ~MTU bytes.
>>     
>
> Didn't we turn off the Nagle's algorithm in 4.6?
>
>   
True, we set TCP_NODELAY for the QNAM upload.
Especially then a upload should not timeout. Maybe there is a flaw in 
his QIODevice.

Jason, we can try to help if you show us the QIODevice.

Markus



More information about the Qt-interest-old mailing list