Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30329

torrent example broken in Qt5+

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.1.0
    • 5.0.0, 5.0.1
    • Examples and Demos
    • None
    • Windows 7, OS X, Ubuntu 12.10
    • 87f890295bdd857571e5289687ffb5ff61d88ed9

      I've been using the code base in the torrent example in the Networking section, for a project of mine since Qt 4.7+.
      When 5.0.0 was released, QHttp was finally dropped and the new sources use QNetworkAccessManager. Unfortunately this upgrade broke the torrent functionality.
      The problem was preventing the trackerclient to get peers, due to the fact that in the new TrackerClient::fetchPeerList implementation, the variable 'query' is not used in the final request, which caused the request to fail and ultimately the connectionError(...) signal is always being emitted from TrackerClient::httpRequestDone and returning, causing a perpetual state of 'Searching' for every added torrent.

      I went ahead and tried to fix the problem, and I partially did. Using 'query' correctly in the tracker request I'm finally getting a list of peers with valid IP addresses. Now I can see the peer count but I have a perpetual state of 'Connecting'. I think this is as far as I can go about trying to fix the problem.

      Any help on this would be much appreciated.

      Thanks,
      Sergio

        For Gerrit Dashboard: QTBUG-30329
        # Subject Branch Project Status CR V

            treinio Topi Reiniƶ
            serpulga Sergio Pulgarin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes