Fix connection max_matches and timeout resetting

Riddle max_matches and timeout was reset to default every time connection was taken from the pool.