{"action":"opened","issue":{"url":"https://api.github.com/repos/nats-io/gnatsd/issues/255","repository_url":"https://api.github.com/repos/nats-io/gnatsd","labels_url":"https://api.github.com/repos/nats-io/gnatsd/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/nats-io/gnatsd/issues/255/comments","events_url":"https://api.github.com/repos/nats-io/gnatsd/issues/255/events","html_url":"https://github.com/nats-io/gnatsd/issues/255","id":150492280,"number":255,"title":"DATA RACE: access to client's fields should be protected in processConnect ","user":{"login":"kozlovic","id":13736691,"avatar_url":"https://avatars.githubusercontent.com/u/13736691?v=3","gravatar_id":"","url":"https://api.github.com/users/kozlovic","html_url":"https://github.com/kozlovic","followers_url":"https://api.github.com/users/kozlovic/followers","following_url":"https://api.github.com/users/kozlovic/following{/other_user}","gists_url":"https://api.github.com/users/kozlovic/gists{/gist_id}","starred_url":"https://api.github.com/users/kozlovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kozlovic/subscriptions","organizations_url":"https://api.github.com/users/kozlovic/orgs","repos_url":"https://api.github.com/users/kozlovic/repos","events_url":"https://api.github.com/users/kozlovic/events{/privacy}","received_events_url":"https://api.github.com/users/kozlovic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-22T23:15:12Z","updated_at":"2016-04-22T23:15:12Z","closed_at":null,"body":"```\r\n==================\r\nWARNING: DATA RACE\r\nWrite by goroutine 356:\r\n  github.com/nats-io/gnatsd/server.(*client).processConnect()\r\n      /home/travis/gopath/src/github.com/nats-io/gnatsd/server/client.go:329 +0x2d9\r\n  github.com/nats-io/gnatsd/server.(*client).parse()\r\n      /home/travis/gopath/src/github.com/nats-io/gnatsd/server/parser.go:446 +0x1e48\r\n  github.com/nats-io/gnatsd/server.(*client).readLoop()\r\n      /home/travis/gopath/src/github.com/nats-io/gnatsd/server/client.go:177 +0x2cf\r\n  github.com/nats-io/gnatsd/server.(*Server).createRoute.func2()\r\n      /home/travis/gopath/src/github.com/nats-io/gnatsd/server/route.go:353 +0x2d\r\nPrevious read by goroutine 351:\r\n  github.com/nats-io/gnatsd/server.(*Server).removeClient()\r\n      /home/travis/gopath/src/github.com/nats-io/gnatsd/server/server.go:706 +0x1db\r\n  github.com/nats-io/gnatsd/server.(*client).closeConnection()\r\n      /home/travis/gopath/src/github.com/nats-io/gnatsd/server/client.go:1024 +0x597\r\n  github.com/nats-io/gnatsd/server.(*Server).Shutdown()\r\n      /home/travis/gopath/src/github.com/nats-io/gnatsd/server/server.go:318 +0x81d\r\n  github.com/nats-io/gnatsd/test.TestSeedFirstRouteInfo()\r\n      /home/travis/gopath/src/github.com/nats-io/gnatsd/test/route_discovery_test.go:46 +0x4d8\r\n  testing.tRunner()\r\n      /home/travis/.gimme/versions/go1.6.linux.amd64/src/testing/testing.go:473 +0xdc\r\n==================\r\n```"}}