{"action":"created","issue":{"url":"https://api.github.com/repos/go-redis/redis/issues/652","repository_url":"https://api.github.com/repos/go-redis/redis","labels_url":"https://api.github.com/repos/go-redis/redis/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/go-redis/redis/issues/652/comments","events_url":"https://api.github.com/repos/go-redis/redis/issues/652/events","html_url":"https://github.com/go-redis/redis/issues/652","id":263334074,"number":652,"title":"redis client connect to Azure redis cluster timeout","user":{"login":"zhangruiskyline","id":1103731,"avatar_url":"https://avatars2.githubusercontent.com/u/1103731?v=4","gravatar_id":"","url":"https://api.github.com/users/zhangruiskyline","html_url":"https://github.com/zhangruiskyline","followers_url":"https://api.github.com/users/zhangruiskyline/followers","following_url":"https://api.github.com/users/zhangruiskyline/following{/other_user}","gists_url":"https://api.github.com/users/zhangruiskyline/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangruiskyline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangruiskyline/subscriptions","organizations_url":"https://api.github.com/users/zhangruiskyline/orgs","repos_url":"https://api.github.com/users/zhangruiskyline/repos","events_url":"https://api.github.com/users/zhangruiskyline/events{/privacy}","received_events_url":"https://api.github.com/users/zhangruiskyline/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-10-06T04:36:55Z","updated_at":"2017-10-10T10:13:59Z","closed_at":"2017-10-10T10:13:59Z","author_association":"NONE","body":"I did a very simple test on Azure redis server but it always get I/o timeout. code is as below. I thought it is some Azure problem but if I create a python client using redis lib it works. so what could be problem\r\n\r\n```\r\n\r\npackage rediscache_test\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"testing\"\r\n\t\"github.com/go-redis/redis\"\r\n)\r\n\r\nvar client *redis.Client\r\n\r\nfunc CreateNewClient() {\r\n\tclient = redis.NewClient(&redis.Options{\r\n\t\tAddr: \"xxxx.redis.cache.windows.net:6380\",\r\n\t\tPassword:\"xxxxx\",\r\n\t\tDB:     0,  // use default\r\n\t})\r\n\tfmt.Println(client.ClientGetName())\r\n}\r\n\r\nfunc TestCommand(t *testing.T) {\r\n\tCreateNewClient()\r\n\tval := client.Get(\"foo\")\r\n\tfmt.Println(val)\r\n\r\n}\r\n\r\n```\r\n\r\n\r\nBTW, attached is working python program\r\n\r\n```\r\nimport redis\r\nr = redis.StrictRedis(host='xxxx.redis.cache.windows.net',\r\n      port=6380, db=0, password='xxxx', ssl=True)\r\n\r\nr.set('foo', 'bar')\r\nprint(r.get('foo'))\r\n```"},"comment":{"url":"https://api.github.com/repos/go-redis/redis/issues/comments/335427048","html_url":"https://github.com/go-redis/redis/issues/652#issuecomment-335427048","issue_url":"https://api.github.com/repos/go-redis/redis/issues/652","id":335427048,"user":{"login":"vmihailenco","id":290976,"avatar_url":"https://avatars2.githubusercontent.com/u/290976?v=4","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":"2017-10-10T10:13:59Z","updated_at":"2017-10-10T10:13:59Z","author_association":"CONTRIBUTOR","body":"Simplest TLS config is `&tls.Config{InsecureSkipVerify: true}`."}}
{"actor":{"display_login":"vmihailenco"}}