Ashkan: set duration in Config for UDP and TCP