set deadline for http client