Unsolved QNetworkAccessManager doesn't post request in case of large file
-
@Bonnie Yes I have a working python script so it's not a server side problem but it's a good guess. I edited the original post
-
@JonB I think it should be fine as a local variable but just in case I made it a member var but it didn't help:(
-
Hi,
Would it be possible to provide a minimal example application and server that shows that issue ?
-
@KroMignon I tried with the patch for that issue but it didn't help. That description is mostly just about latency issue. :(
-
@Robert-Winke
If you hope for an answer here, I suggest you have a go at @SGaist's request, we need some minimal sample app to reproduce. -
@SGaist yes, I created a sandbox project for this with a working web server in python. There is a readme with instructions how to build and test it. I tried to attach the file here but I dont have enough privileges so here is a google drive link:
https://drive.google.com/drive/folders/1lxPun_p_crKlui5KU8Q1qKBp0ue7vvok?usp=sharing
-
@SGaist ps the error with this web server is not the same. This time I can see the post request from wireshark but the client receives Error code: 99 Unknown error. The progress still doesn't go up to 50 (100%) but it does with the small.txt
-
Your sample Python server does not handle post requests properly and kills the connection early.
Once that fixed, big files are properly uploaded.
Now the question is:
auto prog = sent*100/(2*static_cast<double>(total));
What does that 2 do in there ? Mathematically, you can't reach 100% with that equation unless you send twice the number of bytes.
-
@SGaist That 2 doesn't matter, I'm not expecting it to go to 100 just 50 I just forgot to remove it for this sandbox project.
I'll look into the python server but that's not actually the server I used for testing. The one I used is proven to be working with another client but I cannot attach that. -
@SGaist okay by changing the server it does seem to work but now I'm completely lost because the server I used before works too just not with my client...
-
@Robert-Winke said in QNetworkAccessManager doesn't post request in case of large file:
okay by changing the server it does seem to work
I am just curious to know what to you have changed in server code. At first look, I can not see what wrong with it.
Can you please show me the changes? -
@KroMignon I uploaded the new server code in the same zip