shadowsocks / shadowsocks-android

A shadowsocks client for Android
Other
35.2k stars 11.57k forks source link

Network connection slow when gfwlist enabled #941

Closed fanthos closed 8 years ago

fanthos commented 8 years ago

Environment

Put an x inside the [ ] that applies.

Open some Android apps with lots of image should be loaded from Internet, and the host is not in gfwlist.

What did you expect to see?

The images should be loaded in short time, like VPN disabled.

What did you see instead?

The images have been loaded much more slow than VPN disabled.

fanthos commented 8 years ago

I can't reproduce this every time, sometimes it works but sometimes not. It may happen several minutes after I started the VPN.

When I change route to Bypass LAN & China, it works great.

madeye commented 8 years ago

If you're visiting a site outside China and not in the GFWList, the random slow speed is expected.

fanthos commented 8 years ago

I was using Taobao for Android, and the images loading slow.

madeye commented 8 years ago

For apps like Taobao, it'd be a CDN related issue. My suggestion is to bypass them in the per-app proxy mode.

fanthos commented 8 years ago

Thanks. I am trying more apps about this issue.

madeye commented 8 years ago

I suggest to try web pages like sina.com and huaban.com that have many images and are not in the GFWList.

fanthos commented 8 years ago

Taobao for Android works great just after I start VPN, but it becomes slow after several minutes, and Zhihu has same problem. When I browsing items on Taobao app, data usage on shadowsocks did not increase, so I think this means the connections have been bypassed. sina.cn and huaban.com seems good.

fanthos commented 8 years ago

I am checking the gfwlist.acl, maybe there need dot. at left? I think .*youtube\.com should be written like (.*\.)?youtube\.com Also, google.cn is not GFWed.

madeye commented 8 years ago
  1. So it's definitely a CDN related issue. Bypass these two apps in the per-app mode.
  2. .*youtube\.com means matching any sites with the suffix youtube.com.
  3. google.cn is located in China, so not in the GFW list.
fanthos commented 8 years ago
  1. google.cn is in the gfwlist.acl file found in shadowsocks apk.
  2. thisisnotyoutube.com matchs .*youtube\.com but not match (.*\.)?youtube.com
fanthos commented 8 years ago

Maybe I should enable verbose mode for ss-local to find out how it happened.