{"action":"created","issue":{"url":"https://api.github.com/repos/percona/percona-server/issues/500","repository_url":"https://api.github.com/repos/percona/percona-server","labels_url":"https://api.github.com/repos/percona/percona-server/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/percona/percona-server/issues/500/comments","events_url":"https://api.github.com/repos/percona/percona-server/issues/500/events","html_url":"https://github.com/percona/percona-server/pull/500","id":154454847,"number":500,"title":"Fix bug 1580227 (Killed connection threads might get their sockets cl…","user":{"login":"laurynas-biveinis","id":58894,"avatar_url":"https://avatars.githubusercontent.com/u/58894?v=3","gravatar_id":"","url":"https://api.github.com/users/laurynas-biveinis","html_url":"https://github.com/laurynas-biveinis","followers_url":"https://api.github.com/users/laurynas-biveinis/followers","following_url":"https://api.github.com/users/laurynas-biveinis/following{/other_user}","gists_url":"https://api.github.com/users/laurynas-biveinis/gists{/gist_id}","starred_url":"https://api.github.com/users/laurynas-biveinis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurynas-biveinis/subscriptions","organizations_url":"https://api.github.com/users/laurynas-biveinis/orgs","repos_url":"https://api.github.com/users/laurynas-biveinis/repos","events_url":"https://api.github.com/users/laurynas-biveinis/events{/privacy}","received_events_url":"https://api.github.com/users/laurynas-biveinis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"percona-ysorokin","id":13441497,"avatar_url":"https://avatars.githubusercontent.com/u/13441497?v=3","gravatar_id":"","url":"https://api.github.com/users/percona-ysorokin","html_url":"https://github.com/percona-ysorokin","followers_url":"https://api.github.com/users/percona-ysorokin/followers","following_url":"https://api.github.com/users/percona-ysorokin/following{/other_user}","gists_url":"https://api.github.com/users/percona-ysorokin/gists{/gist_id}","starred_url":"https://api.github.com/users/percona-ysorokin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona-ysorokin/subscriptions","organizations_url":"https://api.github.com/users/percona-ysorokin/orgs","repos_url":"https://api.github.com/users/percona-ysorokin/repos","events_url":"https://api.github.com/users/percona-ysorokin/events{/privacy}","received_events_url":"https://api.github.com/users/percona-ysorokin/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-05-12T10:58:55Z","updated_at":"2016-05-12T12:17:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/percona/percona-server/pulls/500","html_url":"https://github.com/percona/percona-server/pull/500","diff_url":"https://github.com/percona/percona-server/pull/500.diff","patch_url":"https://github.com/percona/percona-server/pull/500.patch"},"body":"…osed twice on shutdown)\r\n\r\nIn some scenarios, THD::disconnect might get called twice for a single\r\nconnection, e.g. the first time by kill_server_threads -> kill_server\r\n-> close_connections -> close_connection, and the second time by\r\nhandle_one_connection -> do_handle_one_connection ->\r\nclose_connection. This will result in the 1st call closing the network\r\nsocket and setting it to -1 and the 2nd call calling close on -1.\r\n\r\nFix by checking VIO state before calling close on the socket.\r\n\r\nhttp://jenkins.percona.com/job/percona-server-5.6-param/1129"},"comment":{"url":"https://api.github.com/repos/percona/percona-server/issues/comments/218739889","html_url":"https://github.com/percona/percona-server/pull/500#issuecomment-218739889","issue_url":"https://api.github.com/repos/percona/percona-server/issues/500","id":218739889,"user":{"login":"percona-ysorokin","id":13441497,"avatar_url":"https://avatars.githubusercontent.com/u/13441497?v=3","gravatar_id":"","url":"https://api.github.com/users/percona-ysorokin","html_url":"https://github.com/percona-ysorokin","followers_url":"https://api.github.com/users/percona-ysorokin/followers","following_url":"https://api.github.com/users/percona-ysorokin/following{/other_user}","gists_url":"https://api.github.com/users/percona-ysorokin/gists{/gist_id}","starred_url":"https://api.github.com/users/percona-ysorokin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona-ysorokin/subscriptions","organizations_url":"https://api.github.com/users/percona-ysorokin/orgs","repos_url":"https://api.github.com/users/percona-ysorokin/repos","events_url":"https://api.github.com/users/percona-ysorokin/events{/privacy}","received_events_url":"https://api.github.com/users/percona-ysorokin/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T12:17:44Z","updated_at":"2016-05-12T12:17:44Z","body":"LGTM"}}