Update the example in doc to include timeout

- connect_timeout and request_timeout
- server_retries and dead_retry are also configurable
- callback for timeout and other failure

Signed-off-by: Wang Xu <gnawux@gmail.com>