Skip to content

BUG: "Reset outbound connections on device wake" doesn't work #1142

@self-related

Description

@self-related

Describe the problem

Option "Reset outbound connections when device wake from sleep" doesn't reset the connection causing connection freeze until timeout.

Expected behavior:
Outbound connection resets after device wake preventing connection freeze.

Actual behavior:
Connection persists causing freeze until timeout.

How to reproduce

  • Use Hysteria2 for outbound
  • Make sure "Acquire WakeLock" option is disabled
  • Enable "Reset outbound connections when device wake from sleep" option
  • Start proxy
  • Lock phone for 30 seconds, then unlock and check the connection

log

INFO[0000] inbound/tun[tun-in]: started at tun
INFO[0000] inbound/mixed[mixed-in]: tcp server started at 127.0.0.1:2080
INFO[0000] sing-box started (0.33s)
2026/03/17 09:33:11 [Debug] [TrafficLooper] traffic count proxy to 2
2026/03/17 09:33:11 [Debug] [TrafficLooper] traffic count g-8 to 8
INFO[0000] outbound/hysteria2[proxy]: outbound connection to cp.cloudflare.com:80
INFO[0011] outbound/hysteria2[proxy]: outbound connection to cp.cloudflare.com:80
2026/03/17 09:34:05 [Warning] [StatsBar$testConnection$1] java.lang.IllegalStateException: Timeout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions