Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved How can I get 10 different URLs?

    General and Desktop
    4
    6
    1026
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      victor wang last edited by A Former User

      I'm using Q t5.5 on my computer.
      I want to get 10 different Urls.
      But when i using connect to do it will lost connect of the Url.
      This is my code here.

      And this is the replyFinished() slot here.

      How can i solve this problem?

      Please help

      1 Reply Last reply Reply Quote 0
      • dheerendra
        dheerendra Qt Champions 2022 last edited by

        Is the slot called those many times ? Since u r firing 10 request u may b hitting issue. Can u try firing 6 requests and try?

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        V 1 Reply Last reply Reply Quote 2
        • V
          victor wang @dheerendra last edited by

          @dheerendra

          I can firing for 5 times without any problem.

          But when i firing for 6 or more it will cause the problem sometimes.
          It cannot connect to the server.

          1 Reply Last reply Reply Quote 0
          • JKSH
            JKSH Moderators last edited by

            Your server probably can't cope with so many requests at once.

            Slow down. Wait for the first request to finish before you send your second one.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply Reply Quote 0
            • dheerendra
              dheerendra Qt Champions 2022 last edited by

              QNetworkAccess manager can only handle max 6 requests in parallel. That may be causing the issue.

              Dheerendra
              @Community Service
              Certified Qt Specialist
              http://www.pthinks.com

              1 Reply Last reply Reply Quote 2
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Hi,

                @dheerendra while the number of parallel queries is correct, it should not have an influence here. The following queries will be queued and started once another as been completed. I think @JKSH is likely on the right track with a server side problem.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post