{"action":"closed","number":19,"pull_request":{"url":"https://api.github.com/repos/valyala/fasthttp/pulls/19","id":53802160,"html_url":"https://github.com/valyala/fasthttp/pull/19","diff_url":"https://github.com/valyala/fasthttp/pull/19.diff","patch_url":"https://github.com/valyala/fasthttp/pull/19.patch","issue_url":"https://api.github.com/repos/valyala/fasthttp/issues/19","number":19,"state":"closed","locked":false,"title":"Fixed client copy resp from respCopy inversely","user":{"login":"buaazp","id":1470377,"avatar_url":"https://avatars.githubusercontent.com/u/1470377?v=3","gravatar_id":"","url":"https://api.github.com/users/buaazp","html_url":"https://github.com/buaazp","followers_url":"https://api.github.com/users/buaazp/followers","following_url":"https://api.github.com/users/buaazp/following{/other_user}","gists_url":"https://api.github.com/users/buaazp/gists{/gist_id}","starred_url":"https://api.github.com/users/buaazp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buaazp/subscriptions","organizations_url":"https://api.github.com/users/buaazp/orgs","repos_url":"https://api.github.com/users/buaazp/repos","events_url":"https://api.github.com/users/buaazp/events{/privacy}","received_events_url":"https://api.github.com/users/buaazp/received_events","type":"User","site_admin":false},"body":"When using `fasthttp.Do()`, there is no resp return because client copy resp from respCopy inversely. For example in `testClientDoTimeoutError`:\r\n\r\n```\r\nvar req Request\r\n\tvar resp Response\r\n\treq.SetRequestURI(\"http://foobar.com/baz\")\r\n\tfor i := 0; i < n; i++ {\r\n\t\terr := c.DoTimeout(&req, &resp, time.Millisecond)\r\n\t\tif err == nil {\r\n\t\t\tt.Fatalf(\"expecting error\")\r\n\t\t}\r\n\t\tif err != ErrTimeout {\r\n\t\t\tt.Fatalf(\"unexpected error: %s. Expecting %s\", err, ErrTimeout)\r\n\t\t}\r\n\t}\r\n```\r\n\r\nThis PR fixed the bug here.","created_at":"2015-12-16T05:54:42Z","updated_at":"2015-12-16T17:59:32Z","closed_at":"2015-12-16T17:59:32Z","merged_at":"2015-12-16T17:59:32Z","merge_commit_sha":"a7ce6f9c5569abc7991e85fff363fa87d4ba0b5b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/valyala/fasthttp/pulls/19/commits","review_comments_url":"https://api.github.com/repos/valyala/fasthttp/pulls/19/comments","review_comment_url":"https://api.github.com/repos/valyala/fasthttp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/valyala/fasthttp/issues/19/comments","statuses_url":"https://api.github.com/repos/valyala/fasthttp/statuses/cd6b2ebf664cc11b1244664f276cadba804c0010","head":{"label":"buaazp:master","ref":"master","sha":"cd6b2ebf664cc11b1244664f276cadba804c0010","user":{"login":"buaazp","id":1470377,"avatar_url":"https://avatars.githubusercontent.com/u/1470377?v=3","gravatar_id":"","url":"https://api.github.com/users/buaazp","html_url":"https://github.com/buaazp","followers_url":"https://api.github.com/users/buaazp/followers","following_url":"https://api.github.com/users/buaazp/following{/other_user}","gists_url":"https://api.github.com/users/buaazp/gists{/gist_id}","starred_url":"https://api.github.com/users/buaazp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buaazp/subscriptions","organizations_url":"https://api.github.com/users/buaazp/orgs","repos_url":"https://api.github.com/users/buaazp/repos","events_url":"https://api.github.com/users/buaazp/events{/privacy}","received_events_url":"https://api.github.com/users/buaazp/received_events","type":"User","site_admin":false},"repo":{"id":47905630,"name":"fasthttp","full_name":"buaazp/fasthttp","owner":{"login":"buaazp","id":1470377,"avatar_url":"https://avatars.githubusercontent.com/u/1470377?v=3","gravatar_id":"","url":"https://api.github.com/users/buaazp","html_url":"https://github.com/buaazp","followers_url":"https://api.github.com/users/buaazp/followers","following_url":"https://api.github.com/users/buaazp/following{/other_user}","gists_url":"https://api.github.com/users/buaazp/gists{/gist_id}","starred_url":"https://api.github.com/users/buaazp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buaazp/subscriptions","organizations_url":"https://api.github.com/users/buaazp/orgs","repos_url":"https://api.github.com/users/buaazp/repos","events_url":"https://api.github.com/users/buaazp/events{/privacy}","received_events_url":"https://api.github.com/users/buaazp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/buaazp/fasthttp","description":"Fast HTTP package for Go","fork":true,"url":"https://api.github.com/repos/buaazp/fasthttp","forks_url":"https://api.github.com/repos/buaazp/fasthttp/forks","keys_url":"https://api.github.com/repos/buaazp/fasthttp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buaazp/fasthttp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buaazp/fasthttp/teams","hooks_url":"https://api.github.com/repos/buaazp/fasthttp/hooks","issue_events_url":"https://api.github.com/repos/buaazp/fasthttp/issues/events{/number}","events_url":"https://api.github.com/repos/buaazp/fasthttp/events","assignees_url":"https://api.github.com/repos/buaazp/fasthttp/assignees{/user}","branches_url":"https://api.github.com/repos/buaazp/fasthttp/branches{/branch}","tags_url":"https://api.github.com/repos/buaazp/fasthttp/tags","blobs_url":"https://api.github.com/repos/buaazp/fasthttp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buaazp/fasthttp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buaazp/fasthttp/git/refs{/sha}","trees_url":"https://api.github.com/repos/buaazp/fasthttp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buaazp/fasthttp/statuses/{sha}","languages_url":"https://api.github.com/repos/buaazp/fasthttp/languages","stargazers_url":"https://api.github.com/repos/buaazp/fasthttp/stargazers","contributors_url":"https://api.github.com/repos/buaazp/fasthttp/contributors","subscribers_url":"https://api.github.com/repos/buaazp/fasthttp/subscribers","subscription_url":"https://api.github.com/repos/buaazp/fasthttp/subscription","commits_url":"https://api.github.com/repos/buaazp/fasthttp/commits{/sha}","git_commits_url":"https://api.github.com/repos/buaazp/fasthttp/git/commits{/sha}","comments_url":"https://api.github.com/repos/buaazp/fasthttp/comments{/number}","issue_comment_url":"https://api.github.com/repos/buaazp/fasthttp/issues/comments{/number}","contents_url":"https://api.github.com/repos/buaazp/fasthttp/contents/{+path}","compare_url":"https://api.github.com/repos/buaazp/fasthttp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buaazp/fasthttp/merges","archive_url":"https://api.github.com/repos/buaazp/fasthttp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buaazp/fasthttp/downloads","issues_url":"https://api.github.com/repos/buaazp/fasthttp/issues{/number}","pulls_url":"https://api.github.com/repos/buaazp/fasthttp/pulls{/number}","milestones_url":"https://api.github.com/repos/buaazp/fasthttp/milestones{/number}","notifications_url":"https://api.github.com/repos/buaazp/fasthttp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buaazp/fasthttp/labels{/name}","releases_url":"https://api.github.com/repos/buaazp/fasthttp/releases{/id}","created_at":"2015-12-13T04:14:50Z","updated_at":"2015-12-13T04:14:51Z","pushed_at":"2015-12-16T05:50:23Z","git_url":"git://github.com/buaazp/fasthttp.git","ssh_url":"git@github.com:buaazp/fasthttp.git","clone_url":"https://github.com/buaazp/fasthttp.git","svn_url":"https://github.com/buaazp/fasthttp","homepage":"","size":476,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"valyala:master","ref":"master","sha":"b00a213a93e308d9e649777a2fea323f4b0b4796","user":{"login":"valyala","id":283442,"avatar_url":"https://avatars.githubusercontent.com/u/283442?v=3","gravatar_id":"","url":"https://api.github.com/users/valyala","html_url":"https://github.com/valyala","followers_url":"https://api.github.com/users/valyala/followers","following_url":"https://api.github.com/users/valyala/following{/other_user}","gists_url":"https://api.github.com/users/valyala/gists{/gist_id}","starred_url":"https://api.github.com/users/valyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valyala/subscriptions","organizations_url":"https://api.github.com/users/valyala/orgs","repos_url":"https://api.github.com/users/valyala/repos","events_url":"https://api.github.com/users/valyala/events{/privacy}","received_events_url":"https://api.github.com/users/valyala/received_events","type":"User","site_admin":false},"repo":{"id":44498957,"name":"fasthttp","full_name":"valyala/fasthttp","owner":{"login":"valyala","id":283442,"avatar_url":"https://avatars.githubusercontent.com/u/283442?v=3","gravatar_id":"","url":"https://api.github.com/users/valyala","html_url":"https://github.com/valyala","followers_url":"https://api.github.com/users/valyala/followers","following_url":"https://api.github.com/users/valyala/following{/other_user}","gists_url":"https://api.github.com/users/valyala/gists{/gist_id}","starred_url":"https://api.github.com/users/valyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valyala/subscriptions","organizations_url":"https://api.github.com/users/valyala/orgs","repos_url":"https://api.github.com/users/valyala/repos","events_url":"https://api.github.com/users/valyala/events{/privacy}","received_events_url":"https://api.github.com/users/valyala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valyala/fasthttp","description":"Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http","fork":false,"url":"https://api.github.com/repos/valyala/fasthttp","forks_url":"https://api.github.com/repos/valyala/fasthttp/forks","keys_url":"https://api.github.com/repos/valyala/fasthttp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valyala/fasthttp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valyala/fasthttp/teams","hooks_url":"https://api.github.com/repos/valyala/fasthttp/hooks","issue_events_url":"https://api.github.com/repos/valyala/fasthttp/issues/events{/number}","events_url":"https://api.github.com/repos/valyala/fasthttp/events","assignees_url":"https://api.github.com/repos/valyala/fasthttp/assignees{/user}","branches_url":"https://api.github.com/repos/valyala/fasthttp/branches{/branch}","tags_url":"https://api.github.com/repos/valyala/fasthttp/tags","blobs_url":"https://api.github.com/repos/valyala/fasthttp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valyala/fasthttp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valyala/fasthttp/git/refs{/sha}","trees_url":"https://api.github.com/repos/valyala/fasthttp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valyala/fasthttp/statuses/{sha}","languages_url":"https://api.github.com/repos/valyala/fasthttp/languages","stargazers_url":"https://api.github.com/repos/valyala/fasthttp/stargazers","contributors_url":"https://api.github.com/repos/valyala/fasthttp/contributors","subscribers_url":"https://api.github.com/repos/valyala/fasthttp/subscribers","subscription_url":"https://api.github.com/repos/valyala/fasthttp/subscription","commits_url":"https://api.github.com/repos/valyala/fasthttp/commits{/sha}","git_commits_url":"https://api.github.com/repos/valyala/fasthttp/git/commits{/sha}","comments_url":"https://api.github.com/repos/valyala/fasthttp/comments{/number}","issue_comment_url":"https://api.github.com/repos/valyala/fasthttp/issues/comments{/number}","contents_url":"https://api.github.com/repos/valyala/fasthttp/contents/{+path}","compare_url":"https://api.github.com/repos/valyala/fasthttp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valyala/fasthttp/merges","archive_url":"https://api.github.com/repos/valyala/fasthttp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valyala/fasthttp/downloads","issues_url":"https://api.github.com/repos/valyala/fasthttp/issues{/number}","pulls_url":"https://api.github.com/repos/valyala/fasthttp/pulls{/number}","milestones_url":"https://api.github.com/repos/valyala/fasthttp/milestones{/number}","notifications_url":"https://api.github.com/repos/valyala/fasthttp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valyala/fasthttp/labels{/name}","releases_url":"https://api.github.com/repos/valyala/fasthttp/releases{/id}","created_at":"2015-10-18T22:19:57Z","updated_at":"2015-12-16T17:49:50Z","pushed_at":"2015-12-16T17:59:32Z","git_url":"git://github.com/valyala/fasthttp.git","ssh_url":"git@github.com:valyala/fasthttp.git","clone_url":"https://github.com/valyala/fasthttp.git","svn_url":"https://github.com/valyala/fasthttp","homepage":"","size":961,"stargazers_count":1323,"watchers_count":1323,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":5,"forks":48,"open_issues":5,"watchers":1323,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/valyala/fasthttp/pulls/19"},"html":{"href":"https://github.com/valyala/fasthttp/pull/19"},"issue":{"href":"https://api.github.com/repos/valyala/fasthttp/issues/19"},"comments":{"href":"https://api.github.com/repos/valyala/fasthttp/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/valyala/fasthttp/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/valyala/fasthttp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/valyala/fasthttp/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/valyala/fasthttp/statuses/cd6b2ebf664cc11b1244664f276cadba804c0010"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"valyala","id":283442,"avatar_url":"https://avatars.githubusercontent.com/u/283442?v=3","gravatar_id":"","url":"https://api.github.com/users/valyala","html_url":"https://github.com/valyala","followers_url":"https://api.github.com/users/valyala/followers","following_url":"https://api.github.com/users/valyala/following{/other_user}","gists_url":"https://api.github.com/users/valyala/gists{/gist_id}","starred_url":"https://api.github.com/users/valyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valyala/subscriptions","organizations_url":"https://api.github.com/users/valyala/orgs","repos_url":"https://api.github.com/users/valyala/repos","events_url":"https://api.github.com/users/valyala/events{/privacy}","received_events_url":"https://api.github.com/users/valyala/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}