Skip to content

FTP Stops when the screen auto-sleeps #4125

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

Open
Pacomatic1 opened this issue Mar 21, 2024 · 0 comments · May be fixed by #4379
Open

FTP Stops when the screen auto-sleeps #4125

Pacomatic1 opened this issue Mar 21, 2024 · 0 comments · May be fixed by #4379
Assignees
Labels
Area-FTP Related to FTP Server. Issue-Bug Related unexpected behavior or something worth investigating.

Comments

@Pacomatic1
Copy link

Describe the bug
Say you're transferring a file via FTP. If I leave it to sit for a while, the phone goes to sleep.
FileZilla then says the server times out.

To Reproduce
Steps to reproduce the behaviour:

  1. Start FTP Server.
  2. Connect to the Server on a client of your choice.
  3. Wait for the phone to go to sleep on its own.
  4. Your client will say the connection has timed out/disconnected/stopped.

Expected behavior
What I expected was for the server to stay up when the phone sleeps.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: Oppop F9
  • OS: ColorOS 7.1 running on Android 10
  • Rooted: No
  • Version: 3.10

Additional context
Not context but instead a suggestion: You could force the phone to stay awake while the server's up.

@VishnuSanal VishnuSanal added Area-FTP Related to FTP Server. Issue-Bug Related unexpected behavior or something worth investigating. labels Mar 22, 2024
@TranceLove TranceLove self-assigned this Apr 4, 2025
TranceLove added a commit to TranceLove/AmazeFileManager that referenced this issue Apr 6, 2025
- Replace EventBus with kotlinx.coroutines
- FtpServerFragment update code to recommended
- FtpService explicitly acquires wakelock and enforces START_STICKY to ensure it's still running in the background even in the doze mode. Fixes TeamAmaze#4125
- Upgrade ACRA to 2.13 for fixing square/leakcanary#2568
@TranceLove TranceLove linked a pull request Apr 6, 2025 that will close this issue
4 tasks
TranceLove added a commit to TranceLove/AmazeFileManager that referenced this issue Apr 6, 2025
- Replace EventBus with kotlinx.coroutines
- FtpServerFragment update code to recommended
- FtpService explicitly acquires wakelock and enforces START_STICKY to ensure it's still running in the background even in the doze mode. Fixes TeamAmaze#4125
- Upgrade ACRA to 2.13 for fixing square/leakcanary#2568
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-FTP Related to FTP Server. Issue-Bug Related unexpected behavior or something worth investigating.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants