apply global timeout to connection management
Bugfix: retry period 0 caused infinite retries