{"action":"closed","issue":{"url":"https://api.github.com/repos/swoole/swoole-src/issues/295","labels_url":"https://api.github.com/repos/swoole/swoole-src/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/swoole/swoole-src/issues/295/comments","events_url":"https://api.github.com/repos/swoole/swoole-src/issues/295/events","html_url":"https://github.com/swoole/swoole-src/issues/295","id":88967134,"number":295,"title":"connection_aborted(), connection_status(), ignore_user_abort() 等函数支持有问题","user":{"login":"breath-co2","id":1320528,"avatar_url":"https://avatars.githubusercontent.com/u/1320528?v=3","gravatar_id":"","url":"https://api.github.com/users/breath-co2","html_url":"https://github.com/breath-co2","followers_url":"https://api.github.com/users/breath-co2/followers","following_url":"https://api.github.com/users/breath-co2/following{/other_user}","gists_url":"https://api.github.com/users/breath-co2/gists{/gist_id}","starred_url":"https://api.github.com/users/breath-co2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breath-co2/subscriptions","organizations_url":"https://api.github.com/users/breath-co2/orgs","repos_url":"https://api.github.com/users/breath-co2/repos","events_url":"https://api.github.com/users/breath-co2/events{/privacy}","received_events_url":"https://api.github.com/users/breath-co2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T09:29:50Z","updated_at":"2015-12-30T13:47:07Z","closed_at":"2015-12-30T13:47:07Z","body":"使用 swoole_http_server 异步启动后，程序中执行 connection_aborted() 不管是否客户端真的断开了都返回的是0\r\nconnection_status() 方法也是的。\r\n\r\nignore_user_abort() 的问题是：apache/nginx/php-fpm等启动php默认都是如果浏览器断开都会强制中断php执行，只有php中执行ignore_user_abort()后才会在断开后继续执行。而 swoole 里默认是不管浏览器断开与否的，都会继续执行，这样似乎就没有 ignore_user_abort 什么事情了。。。\r\n可是这样的设定似乎会给一些phper困扰，有可能也会导致迁移环境后出现异常问题。\r\n"}}