Issue 3951: Make HTTP client socket timeout configurable