-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No reconnection after 'Connection reset by peer' #1414
Comments
shadowsocks has already been put into whitelist of Battery Optimization and Unrestricted data access (in data saver). |
First of all, try VPN mode instead. According to your description, it looks a network issue. To verify that background processes are not killed, please run the following command in the adb shell:
|
VPN mode so far so good. Monitoring any further peculiar event. |
NAT mode, log captured as below:
process was alive. adb connected via WiFi (LAN). |
NAT mode has been deprecated for years. Make sure you're using VPN mode at first. |
You might want to update tun2socks which have latest lwip included. |
Update: VPN mode delayed some notifications (WeChat) while minutes later also stopping all traffic. This happened only after a night of screen off. Didn't get any log since it might oversize. Not sure if it's yielded by Doze. Turned off some experimental features in Greenify, reset Amplify restriction rules and I'll keep watching. |
VPN Mode logcat when network unavailable (only interesting parts):
Frequency reduced from each 1 hour (NAT mode) to 2 - 3 times a day (VPN mode) |
As per your log, the My suggestion is trying other ROMs, e.g. the official ROM from OnePlus. |
I've run |
Since I installed Xposed 88.1 I have the same problem. As soon as I disable Xposed (and reboot) Shadowsocks works again. |
Reopened for reminder purpose. Known faulty modules which may disrupt shadowsocks: |
This is kinda off-topic, but in case anybody ever finds this with Google: |
In my case Amplify floods log and might due to unable to hook on some classes. Anyways, disabled for now. Monitoring other modules to see any can be also suspicious - or it was the framework itself. |
We are not going to support incompatibilities with Xposed framework and/or modules. Please report this bug to them instead. Feel free to keep the conversation going in this thread. |
It might be due to OOM on my old device OnePlus One (bacon) or LoS build too. Not sure which caused it. |
|
|
Please read FAQ then answer these questions before submitting your issue. Thanks!
Environment
Configuration
Put an
x
inside the [ ] that applies.What did you do?
Launch shadowsocks normally and use other apps. In a irregular phase, shadowsocks writes a line of
into logcat. Right after this line, all network traffic is unavailable, including China, LAN and GFWed traffic.
Note: On marshmallow, shadowsocks seems to be correctly resuming the connection, though still sometimes it requires manual intervention (turn off then back on).
Tried to uninstall, reinstall (by offline apk via package manager or Google Play), clear data, checked task-kill utilities and all possible whitelists have ss included. Even set highest process priority and permanent for
shadowsocks:bg
.What did you expect to see?
Shadowsocks should try to reconnect even the connection is reset.
What did you see instead?
No reconnection and all connections are obstructed.
No other lines in log are relevant so I'm not posting here. They are well kept and will be uploaded on demand.
App IS NOT killed, both
shadowsocks:bg
andshadowsocks:sh
are still running.The text was updated successfully, but these errors were encountered: