Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility

HTTP Timeout problems with QNetworkAccessManager and Bearer management



    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Out of scope
    • Affects Version/s: 1.0.2
    • Fix Version/s: None
    • Component/s: Bearer Management
    • Labels:
    • Environment:
      Nokia Qt SDK (Qt 4.6.3)
      Windows 7 x64
      E51 (Qt 4.6.3 and Mobility 1.0.1)
      E52 (Qt 4.6.3 and Mobility 1.0.2)
      N97 (Qt 4.6.3 and Mobility 1.0.2)


      We have an application that runs constantly on the background and communicates with server via HTTP requests. When sending HTTP requests with QNetworkAccessManager we end up getting HTTP timeouts after some ( random ) time. This happens on E52 and N97 ( Qt 4.6.3/4.7.0 + Mobility 1.0.2 ). On E51 I have been unable to reproduce this issue.

      I have been investigating this issue and found a possible bug. When this bug occurs all my Qt applications are unable to perform HTTP requests. I'm only able to recover from this issue by restarting the device.

      I have also attached a simple test application that can be used to reproduce this issue on E52 and N97.

      Steps to reproduce ( on E52 ) :

      0. Restart device ( not required, but I did it )
      1. Open HttpTest application and make sure it works ( with 3g and WLAN )
      2. Open web browser on phone ( using WLAN ) and browse some pages
      3. Run HttpTest -> OK
      4. Open browser again ( different WLAN ) and browse some pages
      5. Run HttpTest ( with 3G )
      -> "Exception on 3 [will do setdefaultif(0) - hack]"
      -> Opens WLAN connection and uses it to communicate with server
      6. Open browser one more time with WLAN and browse some pages
      7. Run HttpTest
      -> All APs give timeouts.

      Few notices:

      • There are minor differences in behavior between E52 and N97 ( mostly caused by random nature of the issue ), but we are able to reproduce this on both devices after certain amount of connections.
      • If I use IP instead of host name -> No timeouts
      • During timeout the following message is logged: "Exception on 3 [will do setdefaultif(0) - hack]" ( on E52 )
      • When I want to use 3G connection the above-mentioned exception forces device to use WLAN connection
      • Restarting the application does not help.

      Let me know if you need any additional details.


        1. httptest_src.zip
          5 kB
        2. qtbrearersample_47.zip
          40 kB
        3. qtbrearersample.zip
          32 kB
        4. qtprog_47.log
          3 kB
        5. qtprog_jpa.log
          32 kB
        6. qtprog.log
          12 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.



            cristiano cristiano di flora
            tuomo_timonen Tuomo Timonen
            1 Vote for this issue
            2 Start watching this issue



                Gerrit Reviews

                There are no open Gerrit changes