{"action":"created","comment":{"url":"https://api.github.com/repos/netty/netty/pulls/comments/38285008","id":38285008,"diff_hunk":"@@ -1271,6 +1271,12 @@ JNIEXPORT void Java_io_netty_channel_epoll_Native_setTcpKeepCnt(JNIEnv* env, jcl\n     setOption(env, fd, IPPROTO_TCP, TCP_KEEPCNT, &optval, sizeof(optval));\n }\n \n+\n+JNIEXPORT void Java_io_netty_channel_epoll_Native_setTcpUserTimeout(JNIEnv* env, jclass clazz, jint fd, jint optval) {\n+    setOption(env, fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &optval, sizeof(optval));\n+}\n+\n+","path":"transport-native-epoll/src/main/c/io_netty_channel_epoll_Native.c","position":9,"original_position":9,"commit_id":"e854882a1f8a0494cc13b3166c8fa115aec77d3c","original_commit_id":"e854882a1f8a0494cc13b3166c8fa115aec77d3c","user":{"login":"normanmaurer","id":439362,"avatar_url":"https://avatars.githubusercontent.com/u/439362?v=3","gravatar_id":"","url":"https://api.github.com/users/normanmaurer","html_url":"https://github.com/normanmaurer","followers_url":"https://api.github.com/users/normanmaurer/followers","following_url":"https://api.github.com/users/normanmaurer/following{/other_user}","gists_url":"https://api.github.com/users/normanmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/normanmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanmaurer/subscriptions","organizations_url":"https://api.github.com/users/normanmaurer/orgs","repos_url":"https://api.github.com/users/normanmaurer/repos","events_url":"https://api.github.com/users/normanmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/normanmaurer/received_events","type":"User","site_admin":false},"body":"Remoce extra empty line","created_at":"2015-08-31T05:18:24Z","updated_at":"2015-08-31T05:18:24Z","html_url":"https://github.com/netty/netty/pull/4175#discussion_r38285008","pull_request_url":"https://api.github.com/repos/netty/netty/pulls/4175","_links":{"self":{"href":"https://api.github.com/repos/netty/netty/pulls/comments/38285008"},"html":{"href":"https://github.com/netty/netty/pull/4175#discussion_r38285008"},"pull_request":{"href":"https://api.github.com/repos/netty/netty/pulls/4175"}}},"pull_request":{"url":"https://api.github.com/repos/netty/netty/pulls/4175","id":43721730,"html_url":"https://github.com/netty/netty/pull/4175","diff_url":"https://github.com/netty/netty/pull/4175.diff","patch_url":"https://github.com/netty/netty/pull/4175.patch","issue_url":"https://api.github.com/repos/netty/netty/issues/4175","number":4175,"state":"open","locked":false,"title":"Add TCP_USER_TIMEOUT","user":{"login":"tomasol","id":492226,"avatar_url":"https://avatars.githubusercontent.com/u/492226?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasol","html_url":"https://github.com/tomasol","followers_url":"https://api.github.com/users/tomasol/followers","following_url":"https://api.github.com/users/tomasol/following{/other_user}","gists_url":"https://api.github.com/users/tomasol/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasol/subscriptions","organizations_url":"https://api.github.com/users/tomasol/orgs","repos_url":"https://api.github.com/users/tomasol/repos","events_url":"https://api.github.com/users/tomasol/events{/privacy}","received_events_url":"https://api.github.com/users/tomasol/received_events","type":"User","site_admin":false},"body":"Motivation:\r\n\r\nSee #4174.\r\n\r\nModifications:\r\n\r\nModify transport-native-epoll to allow setting TCP_USER_TIMEOUT.\r\n\r\nResult:\r\n\r\nHanging connections that are written into will get timeouted.","created_at":"2015-08-30T22:17:33Z","updated_at":"2015-08-31T05:18:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8ba45ba9fb5ac9142088834d9d8dca27cdf7bb1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/netty/netty/pulls/4175/commits","review_comments_url":"https://api.github.com/repos/netty/netty/pulls/4175/comments","review_comment_url":"https://api.github.com/repos/netty/netty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netty/netty/issues/4175/comments","statuses_url":"https://api.github.com/repos/netty/netty/statuses/e854882a1f8a0494cc13b3166c8fa115aec77d3c","head":{"label":"tomasol:4.0","ref":"4.0","sha":"e854882a1f8a0494cc13b3166c8fa115aec77d3c","user":{"login":"tomasol","id":492226,"avatar_url":"https://avatars.githubusercontent.com/u/492226?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasol","html_url":"https://github.com/tomasol","followers_url":"https://api.github.com/users/tomasol/followers","following_url":"https://api.github.com/users/tomasol/following{/other_user}","gists_url":"https://api.github.com/users/tomasol/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasol/subscriptions","organizations_url":"https://api.github.com/users/tomasol/orgs","repos_url":"https://api.github.com/users/tomasol/repos","events_url":"https://api.github.com/users/tomasol/events{/privacy}","received_events_url":"https://api.github.com/users/tomasol/received_events","type":"User","site_admin":false},"repo":{"id":41644650,"name":"netty","full_name":"tomasol/netty","owner":{"login":"tomasol","id":492226,"avatar_url":"https://avatars.githubusercontent.com/u/492226?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasol","html_url":"https://github.com/tomasol","followers_url":"https://api.github.com/users/tomasol/followers","following_url":"https://api.github.com/users/tomasol/following{/other_user}","gists_url":"https://api.github.com/users/tomasol/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasol/subscriptions","organizations_url":"https://api.github.com/users/tomasol/orgs","repos_url":"https://api.github.com/users/tomasol/repos","events_url":"https://api.github.com/users/tomasol/events{/privacy}","received_events_url":"https://api.github.com/users/tomasol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomasol/netty","description":"Netty project - an event-driven asynchronous network application framework","fork":true,"url":"https://api.github.com/repos/tomasol/netty","forks_url":"https://api.github.com/repos/tomasol/netty/forks","keys_url":"https://api.github.com/repos/tomasol/netty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomasol/netty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomasol/netty/teams","hooks_url":"https://api.github.com/repos/tomasol/netty/hooks","issue_events_url":"https://api.github.com/repos/tomasol/netty/issues/events{/number}","events_url":"https://api.github.com/repos/tomasol/netty/events","assignees_url":"https://api.github.com/repos/tomasol/netty/assignees{/user}","branches_url":"https://api.github.com/repos/tomasol/netty/branches{/branch}","tags_url":"https://api.github.com/repos/tomasol/netty/tags","blobs_url":"https://api.github.com/repos/tomasol/netty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomasol/netty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomasol/netty/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomasol/netty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomasol/netty/statuses/{sha}","languages_url":"https://api.github.com/repos/tomasol/netty/languages","stargazers_url":"https://api.github.com/repos/tomasol/netty/stargazers","contributors_url":"https://api.github.com/repos/tomasol/netty/contributors","subscribers_url":"https://api.github.com/repos/tomasol/netty/subscribers","subscription_url":"https://api.github.com/repos/tomasol/netty/subscription","commits_url":"https://api.github.com/repos/tomasol/netty/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomasol/netty/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomasol/netty/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomasol/netty/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomasol/netty/contents/{+path}","compare_url":"https://api.github.com/repos/tomasol/netty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomasol/netty/merges","archive_url":"https://api.github.com/repos/tomasol/netty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomasol/netty/downloads","issues_url":"https://api.github.com/repos/tomasol/netty/issues{/number}","pulls_url":"https://api.github.com/repos/tomasol/netty/pulls{/number}","milestones_url":"https://api.github.com/repos/tomasol/netty/milestones{/number}","notifications_url":"https://api.github.com/repos/tomasol/netty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomasol/netty/labels{/name}","releases_url":"https://api.github.com/repos/tomasol/netty/releases{/id}","created_at":"2015-08-30T22:07:43Z","updated_at":"2015-08-30T22:07:51Z","pushed_at":"2015-08-30T22:14:24Z","git_url":"git://github.com/tomasol/netty.git","ssh_url":"git@github.com:tomasol/netty.git","clone_url":"https://github.com/tomasol/netty.git","svn_url":"https://github.com/tomasol/netty","homepage":"http://netty.io/","size":130228,"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":"netty:4.0","ref":"4.0","sha":"2d4a8a75bbd6746c0fb63728f3877d1985af68ab","user":{"login":"netty","id":473791,"avatar_url":"https://avatars.githubusercontent.com/u/473791?v=3","gravatar_id":"","url":"https://api.github.com/users/netty","html_url":"https://github.com/netty","followers_url":"https://api.github.com/users/netty/followers","following_url":"https://api.github.com/users/netty/following{/other_user}","gists_url":"https://api.github.com/users/netty/gists{/gist_id}","starred_url":"https://api.github.com/users/netty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netty/subscriptions","organizations_url":"https://api.github.com/users/netty/orgs","repos_url":"https://api.github.com/users/netty/repos","events_url":"https://api.github.com/users/netty/events{/privacy}","received_events_url":"https://api.github.com/users/netty/received_events","type":"Organization","site_admin":false},"repo":{"id":1064563,"name":"netty","full_name":"netty/netty","owner":{"login":"netty","id":473791,"avatar_url":"https://avatars.githubusercontent.com/u/473791?v=3","gravatar_id":"","url":"https://api.github.com/users/netty","html_url":"https://github.com/netty","followers_url":"https://api.github.com/users/netty/followers","following_url":"https://api.github.com/users/netty/following{/other_user}","gists_url":"https://api.github.com/users/netty/gists{/gist_id}","starred_url":"https://api.github.com/users/netty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netty/subscriptions","organizations_url":"https://api.github.com/users/netty/orgs","repos_url":"https://api.github.com/users/netty/repos","events_url":"https://api.github.com/users/netty/events{/privacy}","received_events_url":"https://api.github.com/users/netty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netty/netty","description":"Netty project - an event-driven asynchronous network application framework","fork":false,"url":"https://api.github.com/repos/netty/netty","forks_url":"https://api.github.com/repos/netty/netty/forks","keys_url":"https://api.github.com/repos/netty/netty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netty/netty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netty/netty/teams","hooks_url":"https://api.github.com/repos/netty/netty/hooks","issue_events_url":"https://api.github.com/repos/netty/netty/issues/events{/number}","events_url":"https://api.github.com/repos/netty/netty/events","assignees_url":"https://api.github.com/repos/netty/netty/assignees{/user}","branches_url":"https://api.github.com/repos/netty/netty/branches{/branch}","tags_url":"https://api.github.com/repos/netty/netty/tags","blobs_url":"https://api.github.com/repos/netty/netty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netty/netty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netty/netty/git/refs{/sha}","trees_url":"https://api.github.com/repos/netty/netty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netty/netty/statuses/{sha}","languages_url":"https://api.github.com/repos/netty/netty/languages","stargazers_url":"https://api.github.com/repos/netty/netty/stargazers","contributors_url":"https://api.github.com/repos/netty/netty/contributors","subscribers_url":"https://api.github.com/repos/netty/netty/subscribers","subscription_url":"https://api.github.com/repos/netty/netty/subscription","commits_url":"https://api.github.com/repos/netty/netty/commits{/sha}","git_commits_url":"https://api.github.com/repos/netty/netty/git/commits{/sha}","comments_url":"https://api.github.com/repos/netty/netty/comments{/number}","issue_comment_url":"https://api.github.com/repos/netty/netty/issues/comments{/number}","contents_url":"https://api.github.com/repos/netty/netty/contents/{+path}","compare_url":"https://api.github.com/repos/netty/netty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netty/netty/merges","archive_url":"https://api.github.com/repos/netty/netty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netty/netty/downloads","issues_url":"https://api.github.com/repos/netty/netty/issues{/number}","pulls_url":"https://api.github.com/repos/netty/netty/pulls{/number}","milestones_url":"https://api.github.com/repos/netty/netty/milestones{/number}","notifications_url":"https://api.github.com/repos/netty/netty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netty/netty/labels{/name}","releases_url":"https://api.github.com/repos/netty/netty/releases{/id}","created_at":"2010-11-09T09:22:21Z","updated_at":"2015-08-31T04:50:28Z","pushed_at":"2015-08-30T22:17:33Z","git_url":"git://github.com/netty/netty.git","ssh_url":"git@github.com:netty/netty.git","clone_url":"https://github.com/netty/netty.git","svn_url":"https://github.com/netty/netty","homepage":"http://netty.io/","size":130228,"stargazers_count":5134,"watchers_count":5134,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2604,"mirror_url":null,"open_issues_count":315,"forks":2604,"open_issues":315,"watchers":5134,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netty/netty/pulls/4175"},"html":{"href":"https://github.com/netty/netty/pull/4175"},"issue":{"href":"https://api.github.com/repos/netty/netty/issues/4175"},"comments":{"href":"https://api.github.com/repos/netty/netty/issues/4175/comments"},"review_comments":{"href":"https://api.github.com/repos/netty/netty/pulls/4175/comments"},"review_comment":{"href":"https://api.github.com/repos/netty/netty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netty/netty/pulls/4175/commits"},"statuses":{"href":"https://api.github.com/repos/netty/netty/statuses/e854882a1f8a0494cc13b3166c8fa115aec77d3c"}}}}