{"action":"created","comment":{"url":"https://api.github.com/repos/kaazing/gateway/pulls/comments/41683830","id":41683830,"diff_hunk":"@@ -0,0 +1,61 @@\n+/**\n+ * Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved.\n+ *\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  You may obtain a copy of the License at\n+ *\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+\n+package org.kaazing.gateway.transport.wsn.specification.extensions.idletimeout;\n+\n+import static org.kaazing.test.util.ITUtil.createRuleChain;\n+\n+import org.junit.Rule;\n+import org.junit.Test;\n+import org.junit.rules.TestRule;\n+import org.kaazing.gateway.transport.IoHandlerAdapter;\n+import org.kaazing.gateway.transport.wsn.WsnAcceptorRule;\n+import org.kaazing.k3po.junit.annotation.Specification;\n+import org.kaazing.k3po.junit.rules.K3poRule;\n+import org.kaazing.mina.core.session.IoSessionEx;\n+\n+/**\n+ * Class performing x-kaazing-idle-timeout-extension WSN acceptor robot tests integrated with the gateway\n+ *\n+ */\n+public class IdleTimeoutExtensionWSNAcceptorIT {\n+\n+    private final K3poRule k3po = new K3poRule().setScriptRoot(\"org/kaazing/specification/ws.extensions/x-kaazing-idle-timeout\");\n+\n+    private final WsnAcceptorRule acceptor = new WsnAcceptorRule();\n+\n+    @Rule\n+    public TestRule chain = createRuleChain(acceptor, k3po);\n+\n+    @Test\n+    @Specification(\"standard.pong.frames.sent.by.server.no.client.timeout/request\")\n+    public void standardPongFramesSentByServerNoClientTimeout() throws Exception {\n+        acceptor.bind(\"ws://localhost:8001/echo\", new IoHandlerAdapter<IoSessionEx>());","path":"transport/wsn/src/test/java/org/kaazing/gateway/transport/wsn/specification/extensions/idletimeout/IdleTimeoutExtensionWSNAcceptorIT.java","position":51,"original_position":51,"commit_id":"bd1e809ffc6319bdc1a935daf3885b5ce25c7a0e","original_commit_id":"bd1e809ffc6319bdc1a935daf3885b5ce25c7a0e","user":{"login":"cmebarrow","id":3606936,"avatar_url":"https://avatars.githubusercontent.com/u/3606936?v=3","gravatar_id":"","url":"https://api.github.com/users/cmebarrow","html_url":"https://github.com/cmebarrow","followers_url":"https://api.github.com/users/cmebarrow/followers","following_url":"https://api.github.com/users/cmebarrow/following{/other_user}","gists_url":"https://api.github.com/users/cmebarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/cmebarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmebarrow/subscriptions","organizations_url":"https://api.github.com/users/cmebarrow/orgs","repos_url":"https://api.github.com/users/cmebarrow/repos","events_url":"https://api.github.com/users/cmebarrow/events{/privacy}","received_events_url":"https://api.github.com/users/cmebarrow/received_events","type":"User","site_admin":false},"body":"You'll need to make the handler send data every tick seconds (as in the corresponding response.rpt script). You can override method \"sessionOpened\" to do that, and use session.write to write the data. You'll need to create an IoBufferEx object to contain the data, using the buffer allocator you can get from the session. ","created_at":"2015-10-09T22:17:28Z","updated_at":"2015-10-09T22:17:28Z","html_url":"https://github.com/kaazing/gateway/pull/340#discussion_r41683830","pull_request_url":"https://api.github.com/repos/kaazing/gateway/pulls/340","_links":{"self":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/comments/41683830"},"html":{"href":"https://github.com/kaazing/gateway/pull/340#discussion_r41683830"},"pull_request":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/340"}}},"pull_request":{"url":"https://api.github.com/repos/kaazing/gateway/pulls/340","id":47169717,"html_url":"https://github.com/kaazing/gateway/pull/340","diff_url":"https://github.com/kaazing/gateway/pull/340.diff","patch_url":"https://github.com/kaazing/gateway/pull/340.patch","issue_url":"https://api.github.com/repos/kaazing/gateway/issues/340","number":340,"state":"open","locked":false,"title":"Added WSN x-kaazing-idle-timeout k3po test scenarios","user":{"login":"irina-mitrea-luxoft","id":11956567,"avatar_url":"https://avatars.githubusercontent.com/u/11956567?v=3","gravatar_id":"","url":"https://api.github.com/users/irina-mitrea-luxoft","html_url":"https://github.com/irina-mitrea-luxoft","followers_url":"https://api.github.com/users/irina-mitrea-luxoft/followers","following_url":"https://api.github.com/users/irina-mitrea-luxoft/following{/other_user}","gists_url":"https://api.github.com/users/irina-mitrea-luxoft/gists{/gist_id}","starred_url":"https://api.github.com/users/irina-mitrea-luxoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irina-mitrea-luxoft/subscriptions","organizations_url":"https://api.github.com/users/irina-mitrea-luxoft/orgs","repos_url":"https://api.github.com/users/irina-mitrea-luxoft/repos","events_url":"https://api.github.com/users/irina-mitrea-luxoft/events{/privacy}","received_events_url":"https://api.github.com/users/irina-mitrea-luxoft/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-08T15:43:00Z","updated_at":"2015-10-09T22:17:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b05e8a891c10e79b19e1b2bf556b57e1a9fb43e4","assignee":{"login":"cmebarrow","id":3606936,"avatar_url":"https://avatars.githubusercontent.com/u/3606936?v=3","gravatar_id":"","url":"https://api.github.com/users/cmebarrow","html_url":"https://github.com/cmebarrow","followers_url":"https://api.github.com/users/cmebarrow/followers","following_url":"https://api.github.com/users/cmebarrow/following{/other_user}","gists_url":"https://api.github.com/users/cmebarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/cmebarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmebarrow/subscriptions","organizations_url":"https://api.github.com/users/cmebarrow/orgs","repos_url":"https://api.github.com/users/cmebarrow/repos","events_url":"https://api.github.com/users/cmebarrow/events{/privacy}","received_events_url":"https://api.github.com/users/cmebarrow/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/kaazing/gateway/pulls/340/commits","review_comments_url":"https://api.github.com/repos/kaazing/gateway/pulls/340/comments","review_comment_url":"https://api.github.com/repos/kaazing/gateway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaazing/gateway/issues/340/comments","statuses_url":"https://api.github.com/repos/kaazing/gateway/statuses/bd1e809ffc6319bdc1a935daf3885b5ce25c7a0e","head":{"label":"irina-mitrea-luxoft:x_kaazing_idle_timeout","ref":"x_kaazing_idle_timeout","sha":"bd1e809ffc6319bdc1a935daf3885b5ce25c7a0e","user":{"login":"irina-mitrea-luxoft","id":11956567,"avatar_url":"https://avatars.githubusercontent.com/u/11956567?v=3","gravatar_id":"","url":"https://api.github.com/users/irina-mitrea-luxoft","html_url":"https://github.com/irina-mitrea-luxoft","followers_url":"https://api.github.com/users/irina-mitrea-luxoft/followers","following_url":"https://api.github.com/users/irina-mitrea-luxoft/following{/other_user}","gists_url":"https://api.github.com/users/irina-mitrea-luxoft/gists{/gist_id}","starred_url":"https://api.github.com/users/irina-mitrea-luxoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irina-mitrea-luxoft/subscriptions","organizations_url":"https://api.github.com/users/irina-mitrea-luxoft/orgs","repos_url":"https://api.github.com/users/irina-mitrea-luxoft/repos","events_url":"https://api.github.com/users/irina-mitrea-luxoft/events{/privacy}","received_events_url":"https://api.github.com/users/irina-mitrea-luxoft/received_events","type":"User","site_admin":false},"repo":{"id":35120920,"name":"gateway","full_name":"irina-mitrea-luxoft/gateway","owner":{"login":"irina-mitrea-luxoft","id":11956567,"avatar_url":"https://avatars.githubusercontent.com/u/11956567?v=3","gravatar_id":"","url":"https://api.github.com/users/irina-mitrea-luxoft","html_url":"https://github.com/irina-mitrea-luxoft","followers_url":"https://api.github.com/users/irina-mitrea-luxoft/followers","following_url":"https://api.github.com/users/irina-mitrea-luxoft/following{/other_user}","gists_url":"https://api.github.com/users/irina-mitrea-luxoft/gists{/gist_id}","starred_url":"https://api.github.com/users/irina-mitrea-luxoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irina-mitrea-luxoft/subscriptions","organizations_url":"https://api.github.com/users/irina-mitrea-luxoft/orgs","repos_url":"https://api.github.com/users/irina-mitrea-luxoft/repos","events_url":"https://api.github.com/users/irina-mitrea-luxoft/events{/privacy}","received_events_url":"https://api.github.com/users/irina-mitrea-luxoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/irina-mitrea-luxoft/gateway","description":"Kaazing Gateway","fork":true,"url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway","forks_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/forks","keys_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/teams","hooks_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/hooks","issue_events_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/issues/events{/number}","events_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/events","assignees_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/assignees{/user}","branches_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/branches{/branch}","tags_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/tags","blobs_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/languages","stargazers_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/stargazers","contributors_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/contributors","subscribers_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/subscribers","subscription_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/subscription","commits_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/contents/{+path}","compare_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/merges","archive_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/downloads","issues_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/issues{/number}","pulls_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/labels{/name}","releases_url":"https://api.github.com/repos/irina-mitrea-luxoft/gateway/releases{/id}","created_at":"2015-05-05T19:59:05Z","updated_at":"2015-05-08T18:59:20Z","pushed_at":"2015-10-09T13:04:22Z","git_url":"git://github.com/irina-mitrea-luxoft/gateway.git","ssh_url":"git@github.com:irina-mitrea-luxoft/gateway.git","clone_url":"https://github.com/irina-mitrea-luxoft/gateway.git","svn_url":"https://github.com/irina-mitrea-luxoft/gateway","homepage":"","size":10589,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"kaazing:develop","ref":"develop","sha":"fb31ba48c208cf757f48e0c6250796bbde82479c","user":{"login":"kaazing","id":1056680,"avatar_url":"https://avatars.githubusercontent.com/u/1056680?v=3","gravatar_id":"","url":"https://api.github.com/users/kaazing","html_url":"https://github.com/kaazing","followers_url":"https://api.github.com/users/kaazing/followers","following_url":"https://api.github.com/users/kaazing/following{/other_user}","gists_url":"https://api.github.com/users/kaazing/gists{/gist_id}","starred_url":"https://api.github.com/users/kaazing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaazing/subscriptions","organizations_url":"https://api.github.com/users/kaazing/orgs","repos_url":"https://api.github.com/users/kaazing/repos","events_url":"https://api.github.com/users/kaazing/events{/privacy}","received_events_url":"https://api.github.com/users/kaazing/received_events","type":"Organization","site_admin":false},"repo":{"id":26745548,"name":"gateway","full_name":"kaazing/gateway","owner":{"login":"kaazing","id":1056680,"avatar_url":"https://avatars.githubusercontent.com/u/1056680?v=3","gravatar_id":"","url":"https://api.github.com/users/kaazing","html_url":"https://github.com/kaazing","followers_url":"https://api.github.com/users/kaazing/followers","following_url":"https://api.github.com/users/kaazing/following{/other_user}","gists_url":"https://api.github.com/users/kaazing/gists{/gist_id}","starred_url":"https://api.github.com/users/kaazing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaazing/subscriptions","organizations_url":"https://api.github.com/users/kaazing/orgs","repos_url":"https://api.github.com/users/kaazing/repos","events_url":"https://api.github.com/users/kaazing/events{/privacy}","received_events_url":"https://api.github.com/users/kaazing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaazing/gateway","description":"Kaazing Gateway","fork":false,"url":"https://api.github.com/repos/kaazing/gateway","forks_url":"https://api.github.com/repos/kaazing/gateway/forks","keys_url":"https://api.github.com/repos/kaazing/gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaazing/gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaazing/gateway/teams","hooks_url":"https://api.github.com/repos/kaazing/gateway/hooks","issue_events_url":"https://api.github.com/repos/kaazing/gateway/issues/events{/number}","events_url":"https://api.github.com/repos/kaazing/gateway/events","assignees_url":"https://api.github.com/repos/kaazing/gateway/assignees{/user}","branches_url":"https://api.github.com/repos/kaazing/gateway/branches{/branch}","tags_url":"https://api.github.com/repos/kaazing/gateway/tags","blobs_url":"https://api.github.com/repos/kaazing/gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaazing/gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaazing/gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaazing/gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaazing/gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/kaazing/gateway/languages","stargazers_url":"https://api.github.com/repos/kaazing/gateway/stargazers","contributors_url":"https://api.github.com/repos/kaazing/gateway/contributors","subscribers_url":"https://api.github.com/repos/kaazing/gateway/subscribers","subscription_url":"https://api.github.com/repos/kaazing/gateway/subscription","commits_url":"https://api.github.com/repos/kaazing/gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaazing/gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaazing/gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaazing/gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaazing/gateway/contents/{+path}","compare_url":"https://api.github.com/repos/kaazing/gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaazing/gateway/merges","archive_url":"https://api.github.com/repos/kaazing/gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaazing/gateway/downloads","issues_url":"https://api.github.com/repos/kaazing/gateway/issues{/number}","pulls_url":"https://api.github.com/repos/kaazing/gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/kaazing/gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/kaazing/gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaazing/gateway/labels{/name}","releases_url":"https://api.github.com/repos/kaazing/gateway/releases{/id}","created_at":"2014-11-17T07:40:57Z","updated_at":"2015-10-09T07:37:53Z","pushed_at":"2015-10-09T21:34:52Z","git_url":"git://github.com/kaazing/gateway.git","ssh_url":"git@github.com:kaazing/gateway.git","clone_url":"https://github.com/kaazing/gateway.git","svn_url":"https://github.com/kaazing/gateway","homepage":"","size":17585,"stargazers_count":37,"watchers_count":37,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":73,"forks":34,"open_issues":73,"watchers":37,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/340"},"html":{"href":"https://github.com/kaazing/gateway/pull/340"},"issue":{"href":"https://api.github.com/repos/kaazing/gateway/issues/340"},"comments":{"href":"https://api.github.com/repos/kaazing/gateway/issues/340/comments"},"review_comments":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/340/comments"},"review_comment":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaazing/gateway/pulls/340/commits"},"statuses":{"href":"https://api.github.com/repos/kaazing/gateway/statuses/bd1e809ffc6319bdc1a935daf3885b5ce25c7a0e"}}}}