{"action":"created","issue":{"url":"https://api.github.com/repos/hoaproject/Websocket/issues/57","repository_url":"https://api.github.com/repos/hoaproject/Websocket","labels_url":"https://api.github.com/repos/hoaproject/Websocket/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/hoaproject/Websocket/issues/57/comments","events_url":"https://api.github.com/repos/hoaproject/Websocket/issues/57/events","html_url":"https://github.com/hoaproject/Websocket/pull/57","id":118147539,"number":57,"title":"Call to a member function send() on null","user":{"login":"tomzx","id":188960,"avatar_url":"https://avatars.githubusercontent.com/u/188960?v=3","gravatar_id":"","url":"https://api.github.com/users/tomzx","html_url":"https://github.com/tomzx","followers_url":"https://api.github.com/users/tomzx/followers","following_url":"https://api.github.com/users/tomzx/following{/other_user}","gists_url":"https://api.github.com/users/tomzx/gists{/gist_id}","starred_url":"https://api.github.com/users/tomzx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomzx/subscriptions","organizations_url":"https://api.github.com/users/tomzx/orgs","repos_url":"https://api.github.com/users/tomzx/repos","events_url":"https://api.github.com/users/tomzx/events{/privacy}","received_events_url":"https://api.github.com/users/tomzx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hoaproject/Websocket/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/hoaproject/Websocket/labels/difficulty:%20medium","name":"difficulty: medium","color":"F0788C"},{"url":"https://api.github.com/repos/hoaproject/Websocket/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"Metalaka","id":5406767,"avatar_url":"https://avatars.githubusercontent.com/u/5406767?v=3","gravatar_id":"","url":"https://api.github.com/users/Metalaka","html_url":"https://github.com/Metalaka","followers_url":"https://api.github.com/users/Metalaka/followers","following_url":"https://api.github.com/users/Metalaka/following{/other_user}","gists_url":"https://api.github.com/users/Metalaka/gists{/gist_id}","starred_url":"https://api.github.com/users/Metalaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metalaka/subscriptions","organizations_url":"https://api.github.com/users/Metalaka/orgs","repos_url":"https://api.github.com/users/Metalaka/repos","events_url":"https://api.github.com/users/Metalaka/events{/privacy}","received_events_url":"https://api.github.com/users/Metalaka/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2015-11-20T23:18:00Z","updated_at":"2016-02-19T06:03:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hoaproject/Websocket/pulls/57","html_url":"https://github.com/hoaproject/Websocket/pull/57","diff_url":"https://github.com/hoaproject/Websocket/pull/57.diff","patch_url":"https://github.com/hoaproject/Websocket/pull/57.patch"},"body":"hoaproject/Websocket 2.15.08.05\r\n\r\nI have setup a small websocket server which only dispatches message to all other connected clients. I use client code available @ http://hoa-project.net/En/Awecode/Websocket.html to connect to the server with `ab`: `ab -c 50 -n 500 http://localhost/client-push.php`.\r\n\r\nHowever, it appears that as soon as I do that, the websocket server crashes with the following error:\r\n\r\nPHP Fatal error:  Call to a member function send() on null in /site/vendor/hoa/websocket/Connection.php on line 508\r\nPHP Stack trace:\r\nPHP   1. {main}() /site/API/X/Server.php:0\r\nPHP   2. NAMESPACE\\Server::run() /site/API/X/Server.php:11\r\nPHP   3. Hoa\\Socket\\Connection\\Handler->run() /site/src/Z/Y/X/Server.php:16\r\nPHP   4. Hoa\\Websocket\\Connection->_run() /site/vendor/hoa/socket/Connection/Handler.php:186\r\nPHP   5. Hoa\\Core\\Event\\Listener->fire() /site/vendor/hoa/websocket/Connection.php:310\r\nPHP   6. Hoa\\Core\\Consistency\\Xcallable->__invoke() /site/vendor/hoa/core/Event.php:524\r\nPHP   7. call_user_func_array:{/site/vendor/hoa/core/Consistency.php:762}() /site/vendor/hoa/core/Consistency.php:762\r\nPHP   8. NAMESPACE\\Server::NAMESPACE\\{closure}() /site/vendor/hoa/core/Consistency.php:762\r\nPHP   9. Hoa\\Socket\\Connection\\Handler->broadcast() /site/src/Z/Y/X/Server.php:14\r\nPHP  10. call_user_func_array:{/site/vendor/hoa/socket/Connection/Handler.php:288}() /site/vendor/hoa/socket/Connection/Handler.php:288\r\nPHP  11. Hoa\\Socket\\Connection\\Handler->broadcastIf() /site/vendor/hoa/socket/Connection/Handler.php:288\r\nPHP  12. call_user_func_array:{/site/vendor/hoa/socket/Connection/Handler.php:323}() /site/vendor/hoa/socket/Connection/Handler.php:323\r\nPHP  13. Hoa\\Websocket\\Connection->send() /site/vendor/hoa/socket/Connection/Handler.php:323\r\nPHP  14. Hoa\\Socket\\Connection\\Handler->Hoa\\Socket\\Connection\\{closure}() /site/vendor/hoa/websocket/Connection.php:534\r\nPHP  15. call_user_func_array:{/site/vendor/hoa/socket/Connection/Handler.php:257}() /site/vendor/hoa/socket/Connection/Handler.php:257\r\nPHP  16. Hoa\\Websocket\\Connection->Hoa\\Websocket\\{closure}() /site/vendor/hoa/socket/Connection/Handler.php:257\r\n\r\nNote that if I run `ab` without concurrency, the server does not crash.\r\n\r\nThanks by the way for this awesome library :)"},"comment":{"url":"https://api.github.com/repos/hoaproject/Websocket/issues/comments/186075531","html_url":"https://github.com/hoaproject/Websocket/pull/57#issuecomment-186075531","issue_url":"https://api.github.com/repos/hoaproject/Websocket/issues/57","id":186075531,"user":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T06:03:23Z","updated_at":"2016-02-19T06:03:23Z","body":"Great."}}