Gradual thread inc/decrease in up/download
Thread inc/decrease is now generic for all clients that might need it with the method _watch_thread_limit Algorithm: set a small thread limit and when reached wait for active threads to finish. Measure avg time. If avg time decreases, increase thread limit If avg time increases, decrease thread limit.
Showing with 32 additions and 23 deletions