{"action":"created","issue":{"url":"https://api.github.com/repos/Qihoo360/evpp/issues/172","repository_url":"https://api.github.com/repos/Qihoo360/evpp","labels_url":"https://api.github.com/repos/Qihoo360/evpp/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/Qihoo360/evpp/issues/172/comments","events_url":"https://api.github.com/repos/Qihoo360/evpp/issues/172/events","html_url":"https://github.com/Qihoo360/evpp/issues/172","id":370453990,"node_id":"MDU6SXNzdWUzNzA0NTM5OTA=","number":172,"title":"TCPClient Crash when disconnect on ConnectionCallback","user":{"login":"aijyo","id":7956449,"node_id":"MDQ6VXNlcjc5NTY0NDk=","avatar_url":"https://avatars2.githubusercontent.com/u/7956449?v=4","gravatar_id":"","url":"https://api.github.com/users/aijyo","html_url":"https://github.com/aijyo","followers_url":"https://api.github.com/users/aijyo/followers","following_url":"https://api.github.com/users/aijyo/following{/other_user}","gists_url":"https://api.github.com/users/aijyo/gists{/gist_id}","starred_url":"https://api.github.com/users/aijyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aijyo/subscriptions","organizations_url":"https://api.github.com/users/aijyo/orgs","repos_url":"https://api.github.com/users/aijyo/repos","events_url":"https://api.github.com/users/aijyo/events{/privacy}","received_events_url":"https://api.github.com/users/aijyo/received_events","type":"User","site_admin":false},"labels":[{"id":1093089424,"node_id":"MDU6TGFiZWwxMDkzMDg5NDI0","url":"https://api.github.com/repos/Qihoo360/evpp/labels/invalid%20usage","name":"invalid usage","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-16T06:12:29Z","updated_at":"2018-10-17T01:42:59Z","closed_at":"2018-10-17T01:42:59Z","author_association":"NONE","body":"crash scene:\r\n\r\n![image](https://user-images.githubusercontent.com/7956449/46995843-0d434700-d14d-11e8-944d-53ce1d6e6b31.png)\r\n\r\nreason:\r\nJust as the img show, when Connector::HandleWrite::conn_fn_(chan_->fd(), laddr)(line 154) deal with user ConnectionCallback, conn is disconnected, timer_ has been reset 。 So some strategies must be taken to deal with such situations... eg: recheck connect state, or asyn disconnect...\r\n\r\n\r\n![image](https://user-images.githubusercontent.com/7956449/46996257-95761c00-d14e-11e8-9693-13fd2830959b.png)\r\n\r\nclient code:\r\n![image](https://user-images.githubusercontent.com/7956449/46995940-69a66680-d14d-11e8-91b6-5e8687c7c971.png)\r\n\r\nserver code:\r\n![image](https://user-images.githubusercontent.com/7956449/46995923-5abfb400-d14d-11e8-9224-75f407ffe70c.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Qihoo360/evpp/issues/comments/430459530","html_url":"https://github.com/Qihoo360/evpp/issues/172#issuecomment-430459530","issue_url":"https://api.github.com/repos/Qihoo360/evpp/issues/172","id":430459530,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDQ1OTUzMA==","user":{"login":"aijyo","id":7956449,"node_id":"MDQ6VXNlcjc5NTY0NDk=","avatar_url":"https://avatars2.githubusercontent.com/u/7956449?v=4","gravatar_id":"","url":"https://api.github.com/users/aijyo","html_url":"https://github.com/aijyo","followers_url":"https://api.github.com/users/aijyo/followers","following_url":"https://api.github.com/users/aijyo/following{/other_user}","gists_url":"https://api.github.com/users/aijyo/gists{/gist_id}","starred_url":"https://api.github.com/users/aijyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aijyo/subscriptions","organizations_url":"https://api.github.com/users/aijyo/orgs","repos_url":"https://api.github.com/users/aijyo/repos","events_url":"https://api.github.com/users/aijyo/events{/privacy}","received_events_url":"https://api.github.com/users/aijyo/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T01:42:59Z","updated_at":"2018-10-17T01:42:59Z","author_association":"NONE","body":"> Please have a look: [d95ace5](https://github.com/Qihoo360/evpp/commit/d95ace5fb30e00d504ef2563f7cd57759fecc9b5)\r\n> \r\n> @aijyo\r\n\r\ngot it. thanks"}}
{"actor":{"display_login":"aijyo"}}