{"action":"created","issue":{"url":"https://api.github.com/repos/processone/ejabberd/issues/698","labels_url":"https://api.github.com/repos/processone/ejabberd/issues/698/labels{/name}","comments_url":"https://api.github.com/repos/processone/ejabberd/issues/698/comments","events_url":"https://api.github.com/repos/processone/ejabberd/issues/698/events","html_url":"https://github.com/processone/ejabberd/issues/698","id":99145339,"number":698,"title":"Websockets connection server does not ping","user":{"login":"hydrosine","id":2581130,"avatar_url":"https://avatars.githubusercontent.com/u/2581130?v=3","gravatar_id":"","url":"https://api.github.com/users/hydrosine","html_url":"https://github.com/hydrosine","followers_url":"https://api.github.com/users/hydrosine/followers","following_url":"https://api.github.com/users/hydrosine/following{/other_user}","gists_url":"https://api.github.com/users/hydrosine/gists{/gist_id}","starred_url":"https://api.github.com/users/hydrosine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydrosine/subscriptions","organizations_url":"https://api.github.com/users/hydrosine/orgs","repos_url":"https://api.github.com/users/hydrosine/repos","events_url":"https://api.github.com/users/hydrosine/events{/privacy}","received_events_url":"https://api.github.com/users/hydrosine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/processone/ejabberd/labels/Component:Websockets","name":"Component:Websockets","color":"bfd4f2"}],"state":"open","locked":false,"assignee":{"login":"prefiks","id":61998,"avatar_url":"https://avatars.githubusercontent.com/u/61998?v=3","gravatar_id":"","url":"https://api.github.com/users/prefiks","html_url":"https://github.com/prefiks","followers_url":"https://api.github.com/users/prefiks/followers","following_url":"https://api.github.com/users/prefiks/following{/other_user}","gists_url":"https://api.github.com/users/prefiks/gists{/gist_id}","starred_url":"https://api.github.com/users/prefiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prefiks/subscriptions","organizations_url":"https://api.github.com/users/prefiks/orgs","repos_url":"https://api.github.com/users/prefiks/repos","events_url":"https://api.github.com/users/prefiks/events{/privacy}","received_events_url":"https://api.github.com/users/prefiks/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/processone/ejabberd/milestones/7","html_url":"https://github.com/processone/ejabberd/milestones/ejabberd%2015.09","labels_url":"https://api.github.com/repos/processone/ejabberd/milestones/7/labels","id":1224099,"number":7,"title":"ejabberd 15.09","description":"","creator":{"login":"cromain","id":743187,"avatar_url":"https://avatars.githubusercontent.com/u/743187?v=3","gravatar_id":"","url":"https://api.github.com/users/cromain","html_url":"https://github.com/cromain","followers_url":"https://api.github.com/users/cromain/followers","following_url":"https://api.github.com/users/cromain/following{/other_user}","gists_url":"https://api.github.com/users/cromain/gists{/gist_id}","starred_url":"https://api.github.com/users/cromain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cromain/subscriptions","organizations_url":"https://api.github.com/users/cromain/orgs","repos_url":"https://api.github.com/users/cromain/repos","events_url":"https://api.github.com/users/cromain/events{/privacy}","received_events_url":"https://api.github.com/users/cromain/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":1,"state":"open","created_at":"2015-07-24T14:04:37Z","updated_at":"2015-08-05T08:01:54Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-05T07:53:39Z","updated_at":"2015-08-05T09:03:09Z","closed_at":null,"body":"Traced for 5 minutes until socket is automatically closed by websocket_timeout default of 300 seconds. Server has not sent one websocket ping. While it should ping every 60 seconds according to defaults.\r\n\r\nSetting the value to 30 seconds in ejabberd.yml does not change anything, still no pings.\r\n\r\nAccording to docs:\r\n\r\nwebsocket_ping_interval: Seconds\r\nDefines time between pings send by server to client (websocket level protocol pings are used for this) to keep connection active. If client won’t respond to two corresponding pings connection will be assumed as closed. Value of 0 can be used to disable it feature. Default value of this option is set to 60."},"comment":{"url":"https://api.github.com/repos/processone/ejabberd/issues/comments/127924150","html_url":"https://github.com/processone/ejabberd/issues/698#issuecomment-127924150","issue_url":"https://api.github.com/repos/processone/ejabberd/issues/698","id":127924150,"user":{"login":"prefiks","id":61998,"avatar_url":"https://avatars.githubusercontent.com/u/61998?v=3","gravatar_id":"","url":"https://api.github.com/users/prefiks","html_url":"https://github.com/prefiks","followers_url":"https://api.github.com/users/prefiks/followers","following_url":"https://api.github.com/users/prefiks/following{/other_user}","gists_url":"https://api.github.com/users/prefiks/gists{/gist_id}","starred_url":"https://api.github.com/users/prefiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prefiks/subscriptions","organizations_url":"https://api.github.com/users/prefiks/orgs","repos_url":"https://api.github.com/users/prefiks/repos","events_url":"https://api.github.com/users/prefiks/events{/privacy}","received_events_url":"https://api.github.com/users/prefiks/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T09:03:09Z","updated_at":"2015-08-05T09:03:09Z","body":"Hi,\r\n\r\nCould you tell me what xmpp lib are you using for testing? Those server issued ping are only issued when client is using xmpp over websocket rfc compliant protocol (that one that sends <open/> instead of <stream:stream>). Clients that are using older version of websocket protocol were expected to send whitespace pings instead.\r\n\r\ni definitely see pings being sent to client when using new protocol, and don't get disconnected from inactivity. It may also be that you client is not responding to pings, could you tell me in what environment your client is executed?"}}