Added connectTimeout and readTimeout to httpclient implementation (with test).