{"action":"opened","issue":{"url":"https://api.github.com/repos/cpp-netlib/cpp-netlib/issues/810","repository_url":"https://api.github.com/repos/cpp-netlib/cpp-netlib","labels_url":"https://api.github.com/repos/cpp-netlib/cpp-netlib/issues/810/labels{/name}","comments_url":"https://api.github.com/repos/cpp-netlib/cpp-netlib/issues/810/comments","events_url":"https://api.github.com/repos/cpp-netlib/cpp-netlib/issues/810/events","html_url":"https://github.com/cpp-netlib/cpp-netlib/issues/810","id":295030165,"number":810,"title":"A question about close_socket() in sync_ssl.hpp","user":{"login":"lxlenovostar","id":444868,"avatar_url":"https://avatars0.githubusercontent.com/u/444868?v=4","gravatar_id":"","url":"https://api.github.com/users/lxlenovostar","html_url":"https://github.com/lxlenovostar","followers_url":"https://api.github.com/users/lxlenovostar/followers","following_url":"https://api.github.com/users/lxlenovostar/following{/other_user}","gists_url":"https://api.github.com/users/lxlenovostar/gists{/gist_id}","starred_url":"https://api.github.com/users/lxlenovostar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxlenovostar/subscriptions","organizations_url":"https://api.github.com/users/lxlenovostar/orgs","repos_url":"https://api.github.com/users/lxlenovostar/repos","events_url":"https://api.github.com/users/lxlenovostar/events{/privacy}","received_events_url":"https://api.github.com/users/lxlenovostar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-07T07:14:10Z","updated_at":"2018-02-07T07:14:10Z","closed_at":null,"author_association":"NONE","body":"```\r\n  void close_socket() {\r\n    timer_.cancel();\r\n    std::error_code ignored;\r\n    socket_.lowest_layer().shutdown(asio::ip::tcp::socket::shutdown_both,\r\n                                    ignored);\r\n    if (ignored) {\r\n      return;\r\n    }\r\n    socket_.lowest_layer().close(ignored);\r\n  }\r\n```\r\nwe first cancel timer, this prevent call close_socket() twice.   If we comment `timer_cancel()`,  What is the negative effect?\r\n\r\nThank you.\r\n\r\n"}}
{"actor":{"display_login":"lxlenovostar"}}