shadowsocks / shadowsocks-android

A shadowsocks client for Android
Other
35.06k stars 11.58k forks source link

ERR_CONNECTION_RESET on first website visit #2757

Closed uragiristereo closed 3 years ago

uragiristereo commented 3 years ago

Please read contributing guidelines. Thanks.

Describe the bug Everytime i visit a site it will be error connection reset on first time, then works normally after reloading several times. Also images sometimes could not loaded properly.

To Reproduce Steps to reproduce the behavior:

  1. Connect to any server with UDP Fallback
  2. Visit any site
  3. See error ERR_CONNECTION_RESET (see Screenshot 1)
  4. Site works normally after reload once but images not loaded properly (see Screenshot 2)

Expected behavior Site and images loaded properly.

Screenshots (Screenshot 1) image

(Screenshot 2) image

Smartphone (please complete the following information):

Configuration Put an x inside the [ ] that applies.

Additional context I think it's because of the new DDNS feature. Downgrading to v5.2.2 works fine. Sorry for my bad report this is my first time doing opening issue in GitHub.

Mygod commented 3 years ago

🤔 Android should have built-in DNS cache: https://android.googlesource.com/platform/bionic/+/android-5.0.0_r1/libc/dns/resolv/res_cache.c

I guess it is likely that custom ROM could improperly implement the cache.

uragiristereo commented 3 years ago

Thank you for the response. My friend also had the same issue. He use Samsung Galaxy S21 with OneUI 3.

Mygod commented 3 years ago

Dup #2751.