Hi,

I am writing a class to download and process user selected files from a specific source, and I'm experiencing some issues with QHttp and how the requestFinished signal is being fired. I am using QHttp::get to start the downloads, and the files are arriving with no difficulties for one or more files. The problem arises when the last file is finished when the program begins the processing phase (which starts with unzipping the downloaded files using QProcess). After a few seconds (about 10-12) the requestFinished signal is emitted again for the last file, out of nowhere with no requestStarted emission. Has anyone else run into this behavior? and if so, were you able to fix it?

The following is some debug output tracking http object states and request start/finish:

Qt Code:
  1. Current req id: 4
  2. Starting request: 3
  3. Request finished: 3
  4. Starting request: 4
  5. State change to: 3
  6. State change to: 4
  7. State change to: 5
  8. Request finished: 4
  9. unzip
  10. [New Thread -1245271152 (LWP 23590)]
  11. State change to: 6
  12. State change to: 0
  13. Request finished: 4
To copy to clipboard, switch view to plain text mode 

Any insight would be greatly appreciated!
Jd