{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments/86330352","pull_request_review_id":6992995,"id":86330352,"diff_hunk":"@@ -82,13 +104,36 @@ public Pipe(IOControl producerIoControl, ControlledByteBuffer buffer,\n         this.buffer = buffer;\n         this.name += \"_\" + name;\n         this.baseConfig = baseConfig;\n+        this.socketTimeOut = getSocketTimeOut(baseConfig);\n     }\n \n     public Pipe(ControlledByteBuffer buffer, String name, BaseConfiguration baseConfig) {\n         this.buffer = buffer;\n         this.name += \"_\" + name;\n         this.baseConfig = baseConfig;\n         this.hasHttpProducer = false;\n+        this.socketTimeOut = getSocketTimeOut(baseConfig);\n+    }\n+\n+    /**\n+     * Extract socket time out value from baseConfig and return default value if not found\n+     *\n+     * @param baseConfig\n+     * @return\n+     */\n+    private long getSocketTimeOut(BaseConfiguration baseConfig) {","path":"modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/Pipe.java","position":60,"original_position":70,"commit_id":"9c56181023e7b067ba0ac4b6ae8d3ca2af01313e","original_commit_id":"8556faa49903140ded2e733bfde71fd5288d14c7","user":{"login":"nwnpallewela","id":1607013,"avatar_url":"https://avatars.githubusercontent.com/u/1607013?v=3","gravatar_id":"","url":"https://api.github.com/users/nwnpallewela","html_url":"https://github.com/nwnpallewela","followers_url":"https://api.github.com/users/nwnpallewela/followers","following_url":"https://api.github.com/users/nwnpallewela/following{/other_user}","gists_url":"https://api.github.com/users/nwnpallewela/gists{/gist_id}","starred_url":"https://api.github.com/users/nwnpallewela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwnpallewela/subscriptions","organizations_url":"https://api.github.com/users/nwnpallewela/orgs","repos_url":"https://api.github.com/users/nwnpallewela/repos","events_url":"https://api.github.com/users/nwnpallewela/events{/privacy}","received_events_url":"https://api.github.com/users/nwnpallewela/received_events","type":"User","site_admin":false},"body":"Used existing one and made the socket time out value static.\r\nThanks","created_at":"2016-11-03T12:17:41Z","updated_at":"2016-11-03T12:17:41Z","html_url":"https://github.com/wso2/wso2-synapse/pull/669#discussion_r86330352","pull_request_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/669","_links":{"self":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments/86330352"},"html":{"href":"https://github.com/wso2/wso2-synapse/pull/669#discussion_r86330352"},"pull_request":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/669"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/669","id":92098573,"html_url":"https://github.com/wso2/wso2-synapse/pull/669","diff_url":"https://github.com/wso2/wso2-synapse/pull/669.diff","patch_url":"https://github.com/wso2/wso2-synapse/pull/669.patch","issue_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/669","number":669,"state":"open","locked":false,"title":"ESBJAVA-4942 : Adding time out equal to socket time out for write condition await in…","user":{"login":"nwnpallewela","id":1607013,"avatar_url":"https://avatars.githubusercontent.com/u/1607013?v=3","gravatar_id":"","url":"https://api.github.com/users/nwnpallewela","html_url":"https://github.com/nwnpallewela","followers_url":"https://api.github.com/users/nwnpallewela/followers","following_url":"https://api.github.com/users/nwnpallewela/following{/other_user}","gists_url":"https://api.github.com/users/nwnpallewela/gists{/gist_id}","starred_url":"https://api.github.com/users/nwnpallewela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwnpallewela/subscriptions","organizations_url":"https://api.github.com/users/nwnpallewela/orgs","repos_url":"https://api.github.com/users/nwnpallewela/repos","events_url":"https://api.github.com/users/nwnpallewela/events{/privacy}","received_events_url":"https://api.github.com/users/nwnpallewela/received_events","type":"User","site_admin":false},"body":"… the flush content method","created_at":"2016-11-03T05:31:29Z","updated_at":"2016-11-03T12:17:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31b7306f137276ed55ac689dfdf3bd1b7b587c85","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/669/commits","review_comments_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/669/comments","review_comment_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/669/comments","statuses_url":"https://api.github.com/repos/wso2/wso2-synapse/statuses/9c56181023e7b067ba0ac4b6ae8d3ca2af01313e","head":{"label":"nwnpallewela:master","ref":"master","sha":"9c56181023e7b067ba0ac4b6ae8d3ca2af01313e","user":{"login":"nwnpallewela","id":1607013,"avatar_url":"https://avatars.githubusercontent.com/u/1607013?v=3","gravatar_id":"","url":"https://api.github.com/users/nwnpallewela","html_url":"https://github.com/nwnpallewela","followers_url":"https://api.github.com/users/nwnpallewela/followers","following_url":"https://api.github.com/users/nwnpallewela/following{/other_user}","gists_url":"https://api.github.com/users/nwnpallewela/gists{/gist_id}","starred_url":"https://api.github.com/users/nwnpallewela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwnpallewela/subscriptions","organizations_url":"https://api.github.com/users/nwnpallewela/orgs","repos_url":"https://api.github.com/users/nwnpallewela/repos","events_url":"https://api.github.com/users/nwnpallewela/events{/privacy}","received_events_url":"https://api.github.com/users/nwnpallewela/received_events","type":"User","site_admin":false},"repo":{"id":39774003,"name":"wso2-synapse","full_name":"nwnpallewela/wso2-synapse","owner":{"login":"nwnpallewela","id":1607013,"avatar_url":"https://avatars.githubusercontent.com/u/1607013?v=3","gravatar_id":"","url":"https://api.github.com/users/nwnpallewela","html_url":"https://github.com/nwnpallewela","followers_url":"https://api.github.com/users/nwnpallewela/followers","following_url":"https://api.github.com/users/nwnpallewela/following{/other_user}","gists_url":"https://api.github.com/users/nwnpallewela/gists{/gist_id}","starred_url":"https://api.github.com/users/nwnpallewela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwnpallewela/subscriptions","organizations_url":"https://api.github.com/users/nwnpallewela/orgs","repos_url":"https://api.github.com/users/nwnpallewela/repos","events_url":"https://api.github.com/users/nwnpallewela/events{/privacy}","received_events_url":"https://api.github.com/users/nwnpallewela/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nwnpallewela/wso2-synapse","description":null,"fork":true,"url":"https://api.github.com/repos/nwnpallewela/wso2-synapse","forks_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/forks","keys_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/teams","hooks_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/hooks","issue_events_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/issues/events{/number}","events_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/events","assignees_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/assignees{/user}","branches_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/branches{/branch}","tags_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/tags","blobs_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/git/refs{/sha}","trees_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/statuses/{sha}","languages_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/languages","stargazers_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/stargazers","contributors_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/contributors","subscribers_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/subscribers","subscription_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/subscription","commits_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/commits{/sha}","git_commits_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/git/commits{/sha}","comments_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/comments{/number}","issue_comment_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/issues/comments{/number}","contents_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/contents/{+path}","compare_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/merges","archive_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/downloads","issues_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/issues{/number}","pulls_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/pulls{/number}","milestones_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/milestones{/number}","notifications_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/labels{/name}","releases_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/releases{/id}","deployments_url":"https://api.github.com/repos/nwnpallewela/wso2-synapse/deployments","created_at":"2015-07-27T12:47:44Z","updated_at":"2016-05-02T03:59:05Z","pushed_at":"2016-11-03T12:16:22Z","git_url":"git://github.com/nwnpallewela/wso2-synapse.git","ssh_url":"git@github.com:nwnpallewela/wso2-synapse.git","clone_url":"https://github.com/nwnpallewela/wso2-synapse.git","svn_url":"https://github.com/nwnpallewela/wso2-synapse","homepage":null,"size":12987,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"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":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"cb818beae58f441b69e201e1cd535e20780416f8","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":16471584,"name":"wso2-synapse","full_name":"wso2/wso2-synapse","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/wso2-synapse","description":null,"fork":false,"url":"https://api.github.com/repos/wso2/wso2-synapse","forks_url":"https://api.github.com/repos/wso2/wso2-synapse/forks","keys_url":"https://api.github.com/repos/wso2/wso2-synapse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/wso2-synapse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/wso2-synapse/teams","hooks_url":"https://api.github.com/repos/wso2/wso2-synapse/hooks","issue_events_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/wso2-synapse/events","assignees_url":"https://api.github.com/repos/wso2/wso2-synapse/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/wso2-synapse/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/wso2-synapse/tags","blobs_url":"https://api.github.com/repos/wso2/wso2-synapse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/wso2-synapse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/wso2-synapse/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/wso2-synapse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/wso2-synapse/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/wso2-synapse/languages","stargazers_url":"https://api.github.com/repos/wso2/wso2-synapse/stargazers","contributors_url":"https://api.github.com/repos/wso2/wso2-synapse/contributors","subscribers_url":"https://api.github.com/repos/wso2/wso2-synapse/subscribers","subscription_url":"https://api.github.com/repos/wso2/wso2-synapse/subscription","commits_url":"https://api.github.com/repos/wso2/wso2-synapse/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/wso2-synapse/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/wso2-synapse/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/wso2-synapse/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/wso2-synapse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/wso2-synapse/merges","archive_url":"https://api.github.com/repos/wso2/wso2-synapse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/wso2-synapse/downloads","issues_url":"https://api.github.com/repos/wso2/wso2-synapse/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/wso2-synapse/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/wso2-synapse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/wso2-synapse/labels{/name}","releases_url":"https://api.github.com/repos/wso2/wso2-synapse/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/wso2-synapse/deployments","created_at":"2014-02-03T06:28:42Z","updated_at":"2016-11-02T04:42:56Z","pushed_at":"2016-11-03T12:16:23Z","git_url":"git://github.com/wso2/wso2-synapse.git","ssh_url":"git@github.com:wso2/wso2-synapse.git","clone_url":"https://github.com/wso2/wso2-synapse.git","svn_url":"https://github.com/wso2/wso2-synapse","homepage":null,"size":14904,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":191,"mirror_url":null,"open_issues_count":10,"forks":191,"open_issues":10,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/669"},"html":{"href":"https://github.com/wso2/wso2-synapse/pull/669"},"issue":{"href":"https://api.github.com/repos/wso2/wso2-synapse/issues/669"},"comments":{"href":"https://api.github.com/repos/wso2/wso2-synapse/issues/669/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/669/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/669/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/wso2-synapse/statuses/9c56181023e7b067ba0ac4b6ae8d3ca2af01313e"}}}}
{"actor":{"display_login":"nwnpallewela"}}