{"action":"created","issue":{"url":"https://api.github.com/repos/kakserpom/phpdaemon/issues/209","labels_url":"https://api.github.com/repos/kakserpom/phpdaemon/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/kakserpom/phpdaemon/issues/209/comments","events_url":"https://api.github.com/repos/kakserpom/phpdaemon/issues/209/events","html_url":"https://github.com/kakserpom/phpdaemon/issues/209","id":90754420,"number":209,"title":"Hangs when not in use for a long time","user":{"login":"yefrem","id":3476489,"avatar_url":"https://avatars.githubusercontent.com/u/3476489?v=3","gravatar_id":"","url":"https://api.github.com/users/yefrem","html_url":"https://github.com/yefrem","followers_url":"https://api.github.com/users/yefrem/followers","following_url":"https://api.github.com/users/yefrem/following{/other_user}","gists_url":"https://api.github.com/users/yefrem/gists{/gist_id}","starred_url":"https://api.github.com/users/yefrem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yefrem/subscriptions","organizations_url":"https://api.github.com/users/yefrem/orgs","repos_url":"https://api.github.com/users/yefrem/repos","events_url":"https://api.github.com/users/yefrem/events{/privacy}","received_events_url":"https://api.github.com/users/yefrem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-24T18:31:22Z","updated_at":"2015-06-24T19:27:30Z","closed_at":null,"body":"Hi. I've set up chat server using phpDaemon and WebSockets. It's not published yet so is only used by test users. I've noticed that if I don't connect and send any messages for about 2 days it hangs, clients cannot connect and phpd restart is needed. Is there any way to fix or track it?"},"comment":{"url":"https://api.github.com/repos/kakserpom/phpdaemon/issues/comments/114986732","html_url":"https://github.com/kakserpom/phpdaemon/issues/209#issuecomment-114986732","issue_url":"https://api.github.com/repos/kakserpom/phpdaemon/issues/209","id":114986732,"user":{"login":"yefrem","id":3476489,"avatar_url":"https://avatars.githubusercontent.com/u/3476489?v=3","gravatar_id":"","url":"https://api.github.com/users/yefrem","html_url":"https://github.com/yefrem","followers_url":"https://api.github.com/users/yefrem/followers","following_url":"https://api.github.com/users/yefrem/following{/other_user}","gists_url":"https://api.github.com/users/yefrem/gists{/gist_id}","starred_url":"https://api.github.com/users/yefrem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yefrem/subscriptions","organizations_url":"https://api.github.com/users/yefrem/orgs","repos_url":"https://api.github.com/users/yefrem/repos","events_url":"https://api.github.com/users/yefrem/events{/privacy}","received_events_url":"https://api.github.com/users/yefrem/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T19:27:30Z","updated_at":"2015-06-24T19:27:30Z","body":"uhm, I just described:) I have a WebSocket chat server. It works well, receives and sends messages and so on. But if nobody uses it for about two days it stops accepting clients (hangs). Browser console shows connection error and I should restart phpd to get it working again."}}