QNetworkAccessManager timeout.

Posted by Umesha MS on Stack Overflow See other posts from Stack Overflow or by Umesha MS
Published on 2010-04-19T15:09:34Z Indexed on 2010/04/19 15:13 UTC
Read the original article Hit count: 1255

Filed under:
|

Hi,

Presently I am working on an application which sends and receives file from remote server. To do network operation I am using QNetworkAccessManager.

To upload a file I am using QNetworkAccessManager::put() and to download I am using QNetworkAccessManager::get() functions.

While uploading a file I will initialize a timer with time out of 15 sec. if I upload a small file it will complete it within the time out period. But if I try to upload a file which is very large in size get time out. So how to decide time out for uploading of large file.

Same in case of downloading of a large file. I get file in chunk by chunk in readyread() signal. Here also if I download a large file I get time out. So how to decide time out for uploading of large file.

© Stack Overflow or respective owner

Related posts about qt

Related posts about networking