[BZ-1035338] add timeout for UrlConnection in UrlResource