{"action":"opened","issue":{"url":"https://api.github.com/repos/Terry-Mao/goim/issues/72","repository_url":"https://api.github.com/repos/Terry-Mao/goim","labels_url":"https://api.github.com/repos/Terry-Mao/goim/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/Terry-Mao/goim/issues/72/comments","events_url":"https://api.github.com/repos/Terry-Mao/goim/issues/72/events","html_url":"https://github.com/Terry-Mao/goim/issues/72","id":149960751,"number":72,"title":"room broadcast在websocket协议下有个可能会导致proto body空","user":{"login":"liutaihua","id":616461,"avatar_url":"https://avatars.githubusercontent.com/u/616461?v=3","gravatar_id":"","url":"https://api.github.com/users/liutaihua","html_url":"https://github.com/liutaihua","followers_url":"https://api.github.com/users/liutaihua/followers","following_url":"https://api.github.com/users/liutaihua/following{/other_user}","gists_url":"https://api.github.com/users/liutaihua/gists{/gist_id}","starred_url":"https://api.github.com/users/liutaihua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liutaihua/subscriptions","organizations_url":"https://api.github.com/users/liutaihua/orgs","repos_url":"https://api.github.com/users/liutaihua/repos","events_url":"https://api.github.com/users/liutaihua/events{/privacy}","received_events_url":"https://api.github.com/users/liutaihua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-21T04:11:44Z","updated_at":"2016-04-21T04:11:44Z","closed_at":null,"body":"在dispatchWebsocket时，显示的 p.Body = nil，看注释avoid memory leak\r\n不过proto在Channel里是用指针传递的， \r\n这里的p.Body = nil， 在一个房间大量channel并发的时候，会导致其他连接得到的是一个空的Body\r\n\r\n目前我看到空的消息产生是这样的， 注释这里之后恢复正常。\r\n"}}