{"action":"created","issue":{"url":"https://api.github.com/repos/gansidui/gotcp/issues/11","repository_url":"https://api.github.com/repos/gansidui/gotcp","labels_url":"https://api.github.com/repos/gansidui/gotcp/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/gansidui/gotcp/issues/11/comments","events_url":"https://api.github.com/repos/gansidui/gotcp/issues/11/events","html_url":"https://github.com/gansidui/gotcp/issues/11","id":116332626,"number":11,"title":"异步服务有些问题.","user":{"login":"ronalfei","id":792840,"avatar_url":"https://avatars.githubusercontent.com/u/792840?v=3","gravatar_id":"","url":"https://api.github.com/users/ronalfei","html_url":"https://github.com/ronalfei","followers_url":"https://api.github.com/users/ronalfei/followers","following_url":"https://api.github.com/users/ronalfei/following{/other_user}","gists_url":"https://api.github.com/users/ronalfei/gists{/gist_id}","starred_url":"https://api.github.com/users/ronalfei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronalfei/subscriptions","organizations_url":"https://api.github.com/users/ronalfei/orgs","repos_url":"https://api.github.com/users/ronalfei/repos","events_url":"https://api.github.com/users/ronalfei/events{/privacy}","received_events_url":"https://api.github.com/users/ronalfei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2015-11-11T13:04:59Z","updated_at":"2016-07-20T08:29:30Z","closed_at":null,"body":"通过三个goroutine异步去服务一个连接,  是一个比较好的考虑.\r\n但是通过select去一个chan里拿数据:https://github.com/gansidui/gotcp/blob/master/conn.go#L141\r\n会存在一定的问题.\r\n如果服务器还在write数据, 此时readloop继续去chan里select数据, 结果为eof, 这样会导致defer关闭conn,从而阻断服务器写数据的操作, 引起客户端异常."},"comment":{"url":"https://api.github.com/repos/gansidui/gotcp/issues/comments/233883777","html_url":"https://github.com/gansidui/gotcp/issues/11#issuecomment-233883777","issue_url":"https://api.github.com/repos/gansidui/gotcp/issues/11","id":233883777,"user":{"login":"simon8410","id":3346464,"avatar_url":"https://avatars.githubusercontent.com/u/3346464?v=3","gravatar_id":"","url":"https://api.github.com/users/simon8410","html_url":"https://github.com/simon8410","followers_url":"https://api.github.com/users/simon8410/followers","following_url":"https://api.github.com/users/simon8410/following{/other_user}","gists_url":"https://api.github.com/users/simon8410/gists{/gist_id}","starred_url":"https://api.github.com/users/simon8410/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon8410/subscriptions","organizations_url":"https://api.github.com/users/simon8410/orgs","repos_url":"https://api.github.com/users/simon8410/repos","events_url":"https://api.github.com/users/simon8410/events{/privacy}","received_events_url":"https://api.github.com/users/simon8410/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T08:29:30Z","updated_at":"2016-07-20T08:29:30Z","body":"内存泄漏的结果如何呢？这么长时间过去了 @gansidui "}}
{"actor":{"display_login":"simon8410"}}