Skip to content

[Проблема] Windows: proxy does not recover correctly after laptop sleep/resume #621

@excitoon

Description

@excitoon

Опишите вашу проблему

Environment:

  • TG WS Proxy Windows release
  • Windows laptop
  • Telegram proxy works normally before sleep
  • Connection is over Wi-Fi

Steps to reproduce:

  1. Start TG WS Proxy and verify that Telegram works through the proxy.
  2. Let the Windows laptop go to sleep.
  3. Wake the laptop up.
  4. Try to keep using Telegram through the proxy.

Actual result:

  • After resume, the proxy does not recover correctly.
  • Telegram works poorly or stops working through the proxy.
  • In practice, the workaround is to manually restart the proxy from the tray or restart the app.

Expected result:

  • After Windows resumes from sleep, the proxy should recover automatically and continue working without manual restart.

Notes:

  • This looks like missing handling of Windows sleep/resume or network reinitialization.
  • Manual “Restart proxy” appears to restore normal behavior.
  • It may help to reset stale sockets / pooled connections and reinitialize the proxy automatically after resume.

Extra info to attach:

  • App version
  • Windows version
  • Whether host is 127.0.0.1 or 0.0.0.0
  • Whether manual tray restart always fixes the issue
  • Relevant log lines before sleep and after resume

Дополнительные детали

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions