Adding timeout to http request (sync and async)

This is in an internal class and the value may only change by our tests, so no need to worry.