{"action":"created","comment":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/comments/84977575","pull_request_review_id":5721217,"id":84977575,"diff_hunk":"@@ -6997,6 +6999,24 @@ This feature was first introduced in the `v0.5.0rc1` release.\n \n [Back to TOC](#nginx-api-for-lua)\n \n+tcpsock:settimeouts\n+-------------------\n+**syntax:** *tcpsock:settimeouts(connect_timeout, send_timeout, read_timeout)*\n+\n+**context:** *rewrite_by_lua&#42;, access_by_lua&#42;, content_by_lua&#42;, ngx.timer.&#42;, ssl_certificate_by_lua&#42;, ssl_session_fetch_by_lua&#42;*\n+\n+Set the timeout value(connect, send and read) in milliseconds for subsequent socket operations ([connect](#tcpsockconnect), [send](#tcpsocksend), [receive](#tcpsockreceive), and iterators returned from [receiveuntil](#tcpsockreceiveuntil)).","path":"README.markdown","position":53,"original_position":53,"commit_id":"c9e5d085f0fa0c63474cde0961473cba1e58a999","original_commit_id":"c9e5d085f0fa0c63474cde0961473cba1e58a999","user":{"login":"agentzh","id":56241,"avatar_url":"https://avatars.githubusercontent.com/u/56241?v=3","gravatar_id":"","url":"https://api.github.com/users/agentzh","html_url":"https://github.com/agentzh","followers_url":"https://api.github.com/users/agentzh/followers","following_url":"https://api.github.com/users/agentzh/following{/other_user}","gists_url":"https://api.github.com/users/agentzh/gists{/gist_id}","starred_url":"https://api.github.com/users/agentzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentzh/subscriptions","organizations_url":"https://api.github.com/users/agentzh/orgs","repos_url":"https://api.github.com/users/agentzh/repos","events_url":"https://api.github.com/users/agentzh/events{/privacy}","received_events_url":"https://api.github.com/users/agentzh/received_events","type":"User","site_admin":false},"body":"\"Set\" => \"Sets\"","created_at":"2016-10-25T19:05:44Z","updated_at":"2016-10-25T19:05:44Z","html_url":"https://github.com/openresty/lua-nginx-module/pull/850#discussion_r84977575","pull_request_url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/850","_links":{"self":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/comments/84977575"},"html":{"href":"https://github.com/openresty/lua-nginx-module/pull/850#discussion_r84977575"},"pull_request":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/850"}}},"pull_request":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/850","id":82684191,"html_url":"https://github.com/openresty/lua-nginx-module/pull/850","diff_url":"https://github.com/openresty/lua-nginx-module/pull/850.diff","patch_url":"https://github.com/openresty/lua-nginx-module/pull/850.patch","issue_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/850","number":850,"state":"open","locked":false,"title":"feature: add a new api tcpsock:settimeouts(connect_timeout, send_timeout, read_timeout)","user":{"login":"doujiang24","id":570391,"avatar_url":"https://avatars.githubusercontent.com/u/570391?v=3","gravatar_id":"","url":"https://api.github.com/users/doujiang24","html_url":"https://github.com/doujiang24","followers_url":"https://api.github.com/users/doujiang24/followers","following_url":"https://api.github.com/users/doujiang24/following{/other_user}","gists_url":"https://api.github.com/users/doujiang24/gists{/gist_id}","starred_url":"https://api.github.com/users/doujiang24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doujiang24/subscriptions","organizations_url":"https://api.github.com/users/doujiang24/orgs","repos_url":"https://api.github.com/users/doujiang24/repos","events_url":"https://api.github.com/users/doujiang24/events{/privacy}","received_events_url":"https://api.github.com/users/doujiang24/received_events","type":"User","site_admin":false},"body":"I hereby granted the copyright of the changes in this pull request\r\nto the authors of this lua-nginx-module project.","created_at":"2016-08-25T09:19:00Z","updated_at":"2016-10-25T19:10:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"077cec663ccc8f0043d0ae797c70b9677f6ab4a0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/850/commits","review_comments_url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/850/comments","review_comment_url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/850/comments","statuses_url":"https://api.github.com/repos/openresty/lua-nginx-module/statuses/c9e5d085f0fa0c63474cde0961473cba1e58a999","head":{"label":"doujiang24:sock","ref":"sock","sha":"c9e5d085f0fa0c63474cde0961473cba1e58a999","user":{"login":"doujiang24","id":570391,"avatar_url":"https://avatars.githubusercontent.com/u/570391?v=3","gravatar_id":"","url":"https://api.github.com/users/doujiang24","html_url":"https://github.com/doujiang24","followers_url":"https://api.github.com/users/doujiang24/followers","following_url":"https://api.github.com/users/doujiang24/following{/other_user}","gists_url":"https://api.github.com/users/doujiang24/gists{/gist_id}","starred_url":"https://api.github.com/users/doujiang24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doujiang24/subscriptions","organizations_url":"https://api.github.com/users/doujiang24/orgs","repos_url":"https://api.github.com/users/doujiang24/repos","events_url":"https://api.github.com/users/doujiang24/events{/privacy}","received_events_url":"https://api.github.com/users/doujiang24/received_events","type":"User","site_admin":false},"repo":{"id":19924592,"name":"lua-nginx-module","full_name":"doujiang24/lua-nginx-module","owner":{"login":"doujiang24","id":570391,"avatar_url":"https://avatars.githubusercontent.com/u/570391?v=3","gravatar_id":"","url":"https://api.github.com/users/doujiang24","html_url":"https://github.com/doujiang24","followers_url":"https://api.github.com/users/doujiang24/followers","following_url":"https://api.github.com/users/doujiang24/following{/other_user}","gists_url":"https://api.github.com/users/doujiang24/gists{/gist_id}","starred_url":"https://api.github.com/users/doujiang24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doujiang24/subscriptions","organizations_url":"https://api.github.com/users/doujiang24/orgs","repos_url":"https://api.github.com/users/doujiang24/repos","events_url":"https://api.github.com/users/doujiang24/events{/privacy}","received_events_url":"https://api.github.com/users/doujiang24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/doujiang24/lua-nginx-module","description":"Embed the Power of Lua into NGINX","fork":true,"url":"https://api.github.com/repos/doujiang24/lua-nginx-module","forks_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/forks","keys_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/teams","hooks_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/hooks","issue_events_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/issues/events{/number}","events_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/events","assignees_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/assignees{/user}","branches_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/branches{/branch}","tags_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/tags","blobs_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/statuses/{sha}","languages_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/languages","stargazers_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/stargazers","contributors_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/contributors","subscribers_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/subscribers","subscription_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/subscription","commits_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/contents/{+path}","compare_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/merges","archive_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/downloads","issues_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/issues{/number}","pulls_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/pulls{/number}","milestones_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/milestones{/number}","notifications_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/labels{/name}","releases_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/releases{/id}","deployments_url":"https://api.github.com/repos/doujiang24/lua-nginx-module/deployments","created_at":"2014-05-19T00:30:59Z","updated_at":"2016-01-23T11:04:31Z","pushed_at":"2016-10-19T10:58:40Z","git_url":"git://github.com/doujiang24/lua-nginx-module.git","ssh_url":"git@github.com:doujiang24/lua-nginx-module.git","clone_url":"https://github.com/doujiang24/lua-nginx-module.git","svn_url":"https://github.com/doujiang24/lua-nginx-module","homepage":"http://openresty.org","size":11877,"stargazers_count":0,"watchers_count":0,"language":"C","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":"openresty:master","ref":"master","sha":"da08f59ae5ff0f230595322b3a8ce48bd42f1b3f","user":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"repo":{"id":613829,"name":"lua-nginx-module","full_name":"openresty/lua-nginx-module","owner":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openresty/lua-nginx-module","description":"Embed the Power of Lua into NGINX HTTP servers","fork":false,"url":"https://api.github.com/repos/openresty/lua-nginx-module","forks_url":"https://api.github.com/repos/openresty/lua-nginx-module/forks","keys_url":"https://api.github.com/repos/openresty/lua-nginx-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openresty/lua-nginx-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openresty/lua-nginx-module/teams","hooks_url":"https://api.github.com/repos/openresty/lua-nginx-module/hooks","issue_events_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/events{/number}","events_url":"https://api.github.com/repos/openresty/lua-nginx-module/events","assignees_url":"https://api.github.com/repos/openresty/lua-nginx-module/assignees{/user}","branches_url":"https://api.github.com/repos/openresty/lua-nginx-module/branches{/branch}","tags_url":"https://api.github.com/repos/openresty/lua-nginx-module/tags","blobs_url":"https://api.github.com/repos/openresty/lua-nginx-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openresty/lua-nginx-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openresty/lua-nginx-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/openresty/lua-nginx-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openresty/lua-nginx-module/statuses/{sha}","languages_url":"https://api.github.com/repos/openresty/lua-nginx-module/languages","stargazers_url":"https://api.github.com/repos/openresty/lua-nginx-module/stargazers","contributors_url":"https://api.github.com/repos/openresty/lua-nginx-module/contributors","subscribers_url":"https://api.github.com/repos/openresty/lua-nginx-module/subscribers","subscription_url":"https://api.github.com/repos/openresty/lua-nginx-module/subscription","commits_url":"https://api.github.com/repos/openresty/lua-nginx-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/openresty/lua-nginx-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/openresty/lua-nginx-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/openresty/lua-nginx-module/contents/{+path}","compare_url":"https://api.github.com/repos/openresty/lua-nginx-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openresty/lua-nginx-module/merges","archive_url":"https://api.github.com/repos/openresty/lua-nginx-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openresty/lua-nginx-module/downloads","issues_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues{/number}","pulls_url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls{/number}","milestones_url":"https://api.github.com/repos/openresty/lua-nginx-module/milestones{/number}","notifications_url":"https://api.github.com/repos/openresty/lua-nginx-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openresty/lua-nginx-module/labels{/name}","releases_url":"https://api.github.com/repos/openresty/lua-nginx-module/releases{/id}","deployments_url":"https://api.github.com/repos/openresty/lua-nginx-module/deployments","created_at":"2010-04-16T15:59:01Z","updated_at":"2016-10-25T17:35:25Z","pushed_at":"2016-10-23T03:03:17Z","git_url":"git://github.com/openresty/lua-nginx-module.git","ssh_url":"git@github.com:openresty/lua-nginx-module.git","clone_url":"https://github.com/openresty/lua-nginx-module.git","svn_url":"https://github.com/openresty/lua-nginx-module","homepage":"https://openresty.org/","size":15969,"stargazers_count":3581,"watchers_count":3581,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":832,"mirror_url":null,"open_issues_count":97,"forks":832,"open_issues":97,"watchers":3581,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/850"},"html":{"href":"https://github.com/openresty/lua-nginx-module/pull/850"},"issue":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/issues/850"},"comments":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/issues/850/comments"},"review_comments":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/850/comments"},"review_comment":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/850/commits"},"statuses":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/statuses/c9e5d085f0fa0c63474cde0961473cba1e58a999"}}}}
{"actor":{"display_login":"agentzh"}}