Hi, I am using QNetworkAccessManager to send some data to my server.
send is a QByteArray with about 5kB-10kB of data (to update something on my database on the server)Code:QUrl url("http://myserver/sync.php"); QNetworkRequest req(url); req.setPriority(QNetworkRequest::HighPriority); manager->post(req, send);
Every time I send this post, I have to wait for 30-40 seconds to get the answer from the server!
- The upload of my router is about 150kb/s, so it should be uploaded in 1-2 seconds.
- the php-script on my server need 1/2 seconds to process the request.
If I download all data from my server (from database), it need 2 seconds. Why 30 seconds to upload?
Is there a way to see why it need so much to get the reply? Or what can I do to speed up the query?
On the simulator it is fast (1 to 3 seconds), on the phone it is really slow.