{"action":"created","issue":{"url":"https://api.github.com/repos/go-redis/redis/issues/147","labels_url":"https://api.github.com/repos/go-redis/redis/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/go-redis/redis/issues/147/comments","events_url":"https://api.github.com/repos/go-redis/redis/issues/147/events","html_url":"https://github.com/go-redis/redis/issues/147","id":100181873,"number":147,"title":"Setting timeout does not seem to have an effect","user":{"login":"jameskyle","id":8234,"avatar_url":"https://avatars.githubusercontent.com/u/8234?v=3","gravatar_id":"","url":"https://api.github.com/users/jameskyle","html_url":"https://github.com/jameskyle","followers_url":"https://api.github.com/users/jameskyle/followers","following_url":"https://api.github.com/users/jameskyle/following{/other_user}","gists_url":"https://api.github.com/users/jameskyle/gists{/gist_id}","starred_url":"https://api.github.com/users/jameskyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameskyle/subscriptions","organizations_url":"https://api.github.com/users/jameskyle/orgs","repos_url":"https://api.github.com/users/jameskyle/repos","events_url":"https://api.github.com/users/jameskyle/events{/privacy}","received_events_url":"https://api.github.com/users/jameskyle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-10T22:20:01Z","updated_at":"2015-08-11T07:39:43Z","closed_at":"2015-08-10T22:36:18Z","body":"When setting timeout options, it doesn't seem to effect the actual dial timeout. For example:\r\n\r\n        glog.Infoln(\"Setting timeout to \", time.Duration(60*5)*time.Second\r\n\r\n\tclient = redis.NewClient(&redis.Options{\r\n\t\tAddr:        \"localhost:31600\",\r\n\t\tPassword:     \"\",\r\n\t\tDB:           0,\r\n\t\tDialTimeout:  time.Duration(60*5)*time.Second,\r\n\t\tReadTimeout:  time.Duration(60*5)*time.Second,\r\n\t\tWriteTimeout: time.Duration(60*5)*time.Second,\r\n\t})\r\n        _, _ := client.Pong().Result()\r\n\r\nAssuming no Redis server is running at all, this should take 5m to timeout if I'm interpreting the docs right. But when I execute:\r\n\r\n    % time go run main.go \r\n\r\nI get\r\n\r\n    I0810 15:17:09.897471 43124 main.go:22] Setting timeouts to:  5m0s\r\n     dial tcp 172.31.2.11:31600: operation timed out\r\n    go runmain.go -logtostderr 0.33s user 0.08s system 0% cpu 1:15.75 total\r\n\r\nSo only 1m15s."},"comment":{"url":"https://api.github.com/repos/go-redis/redis/issues/comments/129741808","html_url":"https://github.com/go-redis/redis/issues/147#issuecomment-129741808","issue_url":"https://api.github.com/repos/go-redis/redis/issues/147","id":129741808,"user":{"login":"vmihailenco","id":290976,"avatar_url":"https://avatars.githubusercontent.com/u/290976?v=3","gravatar_id":"","url":"https://api.github.com/users/vmihailenco","html_url":"https://github.com/vmihailenco","followers_url":"https://api.github.com/users/vmihailenco/followers","following_url":"https://api.github.com/users/vmihailenco/following{/other_user}","gists_url":"https://api.github.com/users/vmihailenco/gists{/gist_id}","starred_url":"https://api.github.com/users/vmihailenco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmihailenco/subscriptions","organizations_url":"https://api.github.com/users/vmihailenco/orgs","repos_url":"https://api.github.com/users/vmihailenco/repos","events_url":"https://api.github.com/users/vmihailenco/events{/privacy}","received_events_url":"https://api.github.com/users/vmihailenco/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T07:39:43Z","updated_at":"2015-08-11T07:39:43Z","body":":thumbsup:"}}