Tiarait / HTTP-FS-file-server

This is a http, webdav server for sharing files between users on a Wi-Fi network. The online file sharing application works like a local HTTP server.
https://play.google.com/store/apps/details?id=tiar.ua.slf
Apache License 2.0
51 stars 6 forks source link

After a period of time, web server is inaccessible. #8

Closed version2013 closed 2 months ago

version2013 commented 3 months ago

After a period of time, web server is inaccessible. I need to stop the server, then start it again to become accessible.

This behavior will happen after quite a few hours of not trying to access the server.

version2013 commented 3 months ago

The web server has been accessible for days. No more stopping and restarting needed. I am unsure exactly why this inaccessible web server behavior is no longer happening.

Android appears to prioritize putting apps to sleep once screen timeout happens, so installing these two apps may have helped: Wake Lock, and Black Screen. (I can post links if permissible)

To conserve phone battery in between charging, I set the display brightness to lowest setting; then start app Black Screen.

In android developer options, I turned on the setting "Stay awake Screen will never sleep while charging"

My old phone with this web server installed, uses Android 8.1.0

I consider this issue solved.

Tiarait commented 3 months ago

Yes, this is a good solution.

I have an old Pocco x3 and there in the standard settings I removed the battery limit for the application, but it still does not work (after a period of inactivity the system terminates all processes).

Also in the current version the battery function is implemented slightly incorrectly (I will fix it in the next version), which is why some functions work worse when the screen is off.