Some HTTP requests pause, timeout or get dropped

Discussion in 'Technical Support (AdGuard for Android)' started by nick_white, Mar 2, 2015.

  1. nick_white

    nick_white New Member

    Joined:
    Mar 2, 2015
    Messages:
    16
    Hello,

    I am using AdGuard on both my phone (Samsung Galaxy Trend Plus S7580, Android 4.2.2) and tablet (Asus Memo Pad FHD 10 ME302C, Android 4.2.2).
    I am using it in VPN mode.

    Every now and then, I notice that some things (images, for example) are not loaded or take a long time to load.
    The same is with downloads - sometimes, they "freeze" at some percent and remain there for 30 - 60 seconds.
    More infrequent is that a website is not loaded at all and I need to refresh 1..* times for it to load.

    I think this is a generic problem, but it's more obvious when there is a large "whole" thing requested (large image, file to download) or there are lots of requests (for example, a page / forum post with a large number of thumbnails).

    I tested this a couple of times with AdGuard enabled / disabled and it is clear that it happens only when it's enabled.

    To make this clear, it's not about the speed of loading (it's obvious that routing everything will make it slower), but about the locking / pausing of loading for 30 - 60 seconds or some requests being dropped.
    As in the example above, when loading a page with a large number of thumbnails, a lot of them get loaded quickly, then I have to wait for about a minute (during which nothing is loaded), then the rest load, but sometimes some are not shown.

    I tried switching modes (high speed / high quality), but no difference.

    This could be influenced by the (relatively) low amout of RAM (717 MB) on the phone. Although on the tablet I have 2 GB.

    I am using the latest version as of now (1.1.835).
     
  2. nick_white

    nick_white New Member

    Joined:
    Mar 2, 2015
    Messages:
    16
    I switched to proxy mode and the problem doesn't reproduce.
    So it's related to VPN mode.
     
  3. vasily_bagirov

    vasily_bagirov Administrator Staff Member Administrator

    Joined:
    Jul 1, 2014
    Messages:
    6,892
  4. nick_white

    nick_white New Member

    Joined:
    Mar 2, 2015
    Messages:
    16
    I managed to reproduce the bug more often.

    For example, it definitely reproduces with this (NSFW): http://vipergirls.to/threads/923448-Maya-Solar-(2015-03-24)-98-photos-3840x5760
    There are other threads on that forum where it can be reproduced, but to be sure, the number of pictures must be sufficiently large. The one I provided for has around 300 (98 x 3 posts) thumbnails and I can consistently reproduce the bug.

    With Adguard activated in VPN mode, some thumbnails are not loaded. The missing image icon is displayed instead.
    I refreshed the page multiple times and it's consistent:
    - Adguard on, VPN mode - not all thumbnails load (the number of them is seemingly random - sometimes a lot, sometimes a couple)
    - Adguard on, proxy mode - all are loaded
    - Adguard off - all are loaded

    I provided a fresh log file (log everything) with just that page.

    Environment information:
    Phone: Samsung Galaxy Trend Plus S7580
    Processor: 1.2 GHz dual core
    RAM: 717 MB (with around ~250 free maybe)
    Android version: 4.2.2
    Adguard version: 1.1.835
     

    Attached Files:

  5. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    13,121
    Could you please check it with the latest beta version?

    Download link:
    https://adguard.com/apkb

    I'll try to reproduce it by myself tomorrow.
    Strange thing is that everything is ok in the log file, no errors there.
     
  6. nick_white

    nick_white New Member

    Joined:
    Mar 2, 2015
    Messages:
    16
    I checked with the latest beta.
    I tried on the supplied link with multiple refreshes (since the bug is not always reproducible due to randomness).
    Seems there are less dropped images, but still not 100% success rate (like when I have when Adguard VPN deactivated).

    In the log file I attached there are some "connection reset" errors, but are logged at DEBUG level.
     
  7. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    13,121
    Connection resets is ok, it sometimes happens. There is a possibility that something wrong with how we handle http protocol, but to fix it we should first reproduce it on our test device.
     
  8. nick_white

    nick_white New Member

    Joined:
    Mar 2, 2015
    Messages:
    16
    So you tested, but couldn't reproduce on the test device?
     
  9. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    13,121
    Nope, it's good with proxy and vpn both.

    Maybe it is get stucked because of the number of parallel requests?
    How good are you with Android? If you have adb installed we can see what's wrong with this website using Chrome and chrome://inspect feature.
     
  10. nick_white

    nick_white New Member

    Joined:
    Mar 2, 2015
    Messages:
    16
    I can try if you give me more details.
     
  11. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    13,121
    Ok, let's try it. Sorry that instruction is so complicated.

    1. Install ADB: http://developer.android.com/tools/help/adb.html
    2. You may need to reboot computer after this
    3. Enable USB debugging on your device: http://www.droidviews.com/how-to-en...-mode-on-devices-with-android-4-2-jelly-bean/
    3. Connect the device to the computer
    4. Device will ask you for permission
    5. Open Google Chrome and go to chrome://inspect
    6. You'll see all tabs currently opened on your device's Chrome

    That's the first part of the instruction. Now when you've prepared the environment we can collect browser logs.

    1. Select the tab from chrome://inspect and click the link
    2. Developer Tools window will be opened
    3. Go to "Network" tab there
    4. Refresh the page on the mobile device until the problem is reproduced
    5. You'll see lots of network requests on the tab
    6. Right-click somewhere there and select "Save all as HAR"
    7. Send me the HAR file
     
  12. dja2k

    dja2k Beta Tester

    Joined:
    Aug 9, 2014
    Messages:
    57
    I don't know if this is related, but if I try to download a big file from the Play Store, it will stall and never finish. My Adguard is using VPN on a Note 4 running Lollipop 5.0.1. Once I disable Adguard filtering, the apk can be downloaded normally.

    dja2k
     
  13. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    13,121
    Could you please collect AG logs for us?

    There is an instruction:
    https://kb.adguard.com/index.php?/K.../collecting-a-full-log-on-adguard-for-android