{"action":"opened","issue":{"url":"https://api.github.com/repos/GameXG/TcpRoute2/issues/10","labels_url":"https://api.github.com/repos/GameXG/TcpRoute2/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/GameXG/TcpRoute2/issues/10/comments","events_url":"https://api.github.com/repos/GameXG/TcpRoute2/issues/10/events","html_url":"https://github.com/GameXG/TcpRoute2/issues/10","id":124060381,"number":10,"title":"[race]upstream_cache","user":{"login":"GameXG","id":457902,"avatar_url":"https://avatars.githubusercontent.com/u/457902?v=3","gravatar_id":"","url":"https://api.github.com/users/GameXG","html_url":"https://github.com/GameXG","followers_url":"https://api.github.com/users/GameXG/followers","following_url":"https://api.github.com/users/GameXG/following{/other_user}","gists_url":"https://api.github.com/users/GameXG/gists{/gist_id}","starred_url":"https://api.github.com/users/GameXG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GameXG/subscriptions","organizations_url":"https://api.github.com/users/GameXG/orgs","repos_url":"https://api.github.com/users/GameXG/repos","events_url":"https://api.github.com/users/GameXG/events{/privacy}","received_events_url":"https://api.github.com/users/GameXG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-28T12:19:44Z","updated_at":"2015-12-28T12:19:44Z","closed_at":null,"body":"WARNING: DATA RACE\r\nRead by goroutine 100:\r\n  container/list.(*List).MoveToFront()\r\n      C:/workdir/go/src/container/list/list.go:169 +0x91\r\n  github.com/golang/groupcache/lru.(*Cache).Get()\r\n      D:/golang/src/github.com/golang/groupcache/lru/lru.go:79 +0x11e\r\n  main.(*upStreamConnCache).get()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/upstream_cache.go:96 +0xbd\r\n  main.(*upStreamConnCache).GetOptimal()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/upstream_cache.go:126 +0x116\r\n  main.(*tcppingUpStream).DialTimeout()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/upstream_tcpping.go:89 +0xc3\r\n  main.(*hSocksHandle).handleSocks5()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/handler_socks.go:162 +0x10f0\r\n  main.(*hSocksHandle).Handle()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/handler_socks.go:73 +0x2ab\r\n  main.(*Server).handlerConn()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/server.go:121 +0x65e\r\n\r\nPrevious write by goroutine 343:\r\n  container/list.(*List).MoveToFront()\r\n      C:/workdir/go/src/container/list/list.go:169 +0xf7\r\n  github.com/golang/groupcache/lru.(*Cache).Get()\r\n      D:/golang/src/github.com/golang/groupcache/lru/lru.go:79 +0x11e\r\n  main.(*upStreamConnCache).get()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/upstream_cache.go:96 +0xbd\r\n  main.(*upStreamConnCache).GetOptimal()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/upstream_cache.go:126 +0x116\r\n  main.(*tcppingUpStream).DialTimeout()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/upstream_tcpping.go:89 +0xc3\r\n  main.(*hSocksHandle).handleSocks5()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/handler_socks.go:162 +0x10f0\r\n  main.(*hSocksHandle).Handle()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/handler_socks.go:73 +0x2ab\r\n  main.(*Server).handlerConn()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/server.go:121 +0x65e\r\n\r\nGoroutine 100 (running) created at:\r\n  main.(*Server).Server()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/server.go:95 +0x3f5\r\n  main.(*Server).ListAndServe()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/server.go:67 +0x14d\r\n  main.main()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/main.go:62 +0xcc5\r\n\r\nGoroutine 343 (running) created at:\r\n  main.(*Server).Server()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/server.go:95 +0x3f5\r\n  main.(*Server).ListAndServe()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/server.go:67 +0x14d\r\n  main.main()\r\n      D:/golang/src/github.com/gamexg/TcpRoute2/main.go:62 +0xcc5"}}