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

torrent example broken in Qt5+

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes