CURL and PECL_HTTP adapters set connection timeout and dns cache timeout.

Re-created pull request (based on "develop")
Can you please merge @basdenooijer ?