As you discovered, it's an environment variable and should be part of the Docker configuration, not a custom configuration within ADBTuner. It would looks something like this in a Docker Compose file:
...
environment:
- KNOWN_STREAM_DEFAULT_TIMEOUT=40
...
The docker logs should help understand what exactly what is happening on your end.
A line like this would indicate that the tuner was released because it exceeded the amount of time as configured by this setting.
Releasing tuner 3 as it has been inactive for 40 seconds.
A line like this would indicate that the hardcoded maximum time (40 seconds) is exceeded:
Releasing tuner 3 as it is no longer tracked by the proxy server.
I appreciate what you are trying to accomplish, but it wasn't something I hadn't even thought about and I'm not sure if playing with this will achieve much. But I can confirm that it will respect that setting up to the 40 second maximum.
The 2.0 release (currently adbtuner:stable or adbtuner:2.0) is the same as that release. There were no changes other than the version number. At this point, I would suggest that you switch to adbtuner:stable.
Going forward, adbtuner:stable should be the preferred version for day-to-day use. New features will be pushed to adbtuner:development. I'm going to delete the now outdated latest, beta, experimental and other tags. As always, I appreciate everyone's help in testing all of these builds.
Edit: people are still pulling adbtuner:latest. I will keep this around, but it will just mirror adbtuner:stable.



