{"action":"created","comment":{"url":"https://api.github.com/repos/buger/gor/pulls/comments/84590196","pull_request_review_id":5360373,"id":84590196,"diff_hunk":"@@ -318,6 +319,14 @@ func (c *HTTPClient) Send(data []byte) (response []byte, err error) {\n \t\t}\n \t}\n \n+\tif (c.config.CloseConnectionOnResponseStatus > 0) {","path":"http_client.go","position":24,"original_position":24,"commit_id":"424759155de23c0a25121c1125b62a7ab04bea64","original_commit_id":"424759155de23c0a25121c1125b62a7ab04bea64","user":{"login":"buger","id":14009,"avatar_url":"https://avatars.githubusercontent.com/u/14009?v=3","gravatar_id":"","url":"https://api.github.com/users/buger","html_url":"https://github.com/buger","followers_url":"https://api.github.com/users/buger/followers","following_url":"https://api.github.com/users/buger/following{/other_user}","gists_url":"https://api.github.com/users/buger/gists{/gist_id}","starred_url":"https://api.github.com/users/buger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buger/subscriptions","organizations_url":"https://api.github.com/users/buger/orgs","repos_url":"https://api.github.com/users/buger/repos","events_url":"https://api.github.com/users/buger/events{/privacy}","received_events_url":"https://api.github.com/users/buger/received_events","type":"User","site_admin":false},"body":"I think we can make this behaviour default is status is 400, because it is unexpected situation for the server and client. Let's remove this config option at all. ","created_at":"2016-10-23T05:11:56Z","updated_at":"2016-10-23T05:13:55Z","html_url":"https://github.com/buger/gor/pull/375#discussion_r84590196","pull_request_url":"https://api.github.com/repos/buger/gor/pulls/375","_links":{"self":{"href":"https://api.github.com/repos/buger/gor/pulls/comments/84590196"},"html":{"href":"https://github.com/buger/gor/pull/375#discussion_r84590196"},"pull_request":{"href":"https://api.github.com/repos/buger/gor/pulls/375"}}},"pull_request":{"url":"https://api.github.com/repos/buger/gor/pulls/375","id":90094128,"html_url":"https://github.com/buger/gor/pull/375","diff_url":"https://github.com/buger/gor/pull/375.diff","patch_url":"https://github.com/buger/gor/pull/375.patch","issue_url":"https://api.github.com/repos/buger/gor/issues/375","number":375,"state":"open","locked":false,"title":"Adding ability to output http client to close connection on specific …","user":{"login":"manjeshnilange","id":4511855,"avatar_url":"https://avatars.githubusercontent.com/u/4511855?v=3","gravatar_id":"","url":"https://api.github.com/users/manjeshnilange","html_url":"https://github.com/manjeshnilange","followers_url":"https://api.github.com/users/manjeshnilange/followers","following_url":"https://api.github.com/users/manjeshnilange/following{/other_user}","gists_url":"https://api.github.com/users/manjeshnilange/gists{/gist_id}","starred_url":"https://api.github.com/users/manjeshnilange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manjeshnilange/subscriptions","organizations_url":"https://api.github.com/users/manjeshnilange/orgs","repos_url":"https://api.github.com/users/manjeshnilange/repos","events_url":"https://api.github.com/users/manjeshnilange/events{/privacy}","received_events_url":"https://api.github.com/users/manjeshnilange/received_events","type":"User","site_admin":false},"body":"…response status\r\n\r\nOriginal feature request in email\r\n\r\n_I'm running into a problem where our application server that receives shadow traffic via gor fails to parse the request properly and returns a HTTP 400 response. Since gor reuses the connection, our server is not able to parse subsequent requests from the connection. Is there any way to tell gor to close and create a new connection when the server returns a specific error code (400 in this case)?_\r\n","created_at":"2016-10-19T21:28:07Z","updated_at":"2016-10-23T05:13:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5352b2985eec3c734d6ef2397b2b53cb902847d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/buger/gor/pulls/375/commits","review_comments_url":"https://api.github.com/repos/buger/gor/pulls/375/comments","review_comment_url":"https://api.github.com/repos/buger/gor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/buger/gor/issues/375/comments","statuses_url":"https://api.github.com/repos/buger/gor/statuses/424759155de23c0a25121c1125b62a7ab04bea64","head":{"label":"manjeshnilange:master","ref":"master","sha":"424759155de23c0a25121c1125b62a7ab04bea64","user":{"login":"manjeshnilange","id":4511855,"avatar_url":"https://avatars.githubusercontent.com/u/4511855?v=3","gravatar_id":"","url":"https://api.github.com/users/manjeshnilange","html_url":"https://github.com/manjeshnilange","followers_url":"https://api.github.com/users/manjeshnilange/followers","following_url":"https://api.github.com/users/manjeshnilange/following{/other_user}","gists_url":"https://api.github.com/users/manjeshnilange/gists{/gist_id}","starred_url":"https://api.github.com/users/manjeshnilange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manjeshnilange/subscriptions","organizations_url":"https://api.github.com/users/manjeshnilange/orgs","repos_url":"https://api.github.com/users/manjeshnilange/repos","events_url":"https://api.github.com/users/manjeshnilange/events{/privacy}","received_events_url":"https://api.github.com/users/manjeshnilange/received_events","type":"User","site_admin":false},"repo":{"id":71288613,"name":"gor","full_name":"manjeshnilange/gor","owner":{"login":"manjeshnilange","id":4511855,"avatar_url":"https://avatars.githubusercontent.com/u/4511855?v=3","gravatar_id":"","url":"https://api.github.com/users/manjeshnilange","html_url":"https://github.com/manjeshnilange","followers_url":"https://api.github.com/users/manjeshnilange/followers","following_url":"https://api.github.com/users/manjeshnilange/following{/other_user}","gists_url":"https://api.github.com/users/manjeshnilange/gists{/gist_id}","starred_url":"https://api.github.com/users/manjeshnilange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manjeshnilange/subscriptions","organizations_url":"https://api.github.com/users/manjeshnilange/orgs","repos_url":"https://api.github.com/users/manjeshnilange/repos","events_url":"https://api.github.com/users/manjeshnilange/events{/privacy}","received_events_url":"https://api.github.com/users/manjeshnilange/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manjeshnilange/gor","description":"Gor is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.","fork":true,"url":"https://api.github.com/repos/manjeshnilange/gor","forks_url":"https://api.github.com/repos/manjeshnilange/gor/forks","keys_url":"https://api.github.com/repos/manjeshnilange/gor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manjeshnilange/gor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manjeshnilange/gor/teams","hooks_url":"https://api.github.com/repos/manjeshnilange/gor/hooks","issue_events_url":"https://api.github.com/repos/manjeshnilange/gor/issues/events{/number}","events_url":"https://api.github.com/repos/manjeshnilange/gor/events","assignees_url":"https://api.github.com/repos/manjeshnilange/gor/assignees{/user}","branches_url":"https://api.github.com/repos/manjeshnilange/gor/branches{/branch}","tags_url":"https://api.github.com/repos/manjeshnilange/gor/tags","blobs_url":"https://api.github.com/repos/manjeshnilange/gor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manjeshnilange/gor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manjeshnilange/gor/git/refs{/sha}","trees_url":"https://api.github.com/repos/manjeshnilange/gor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manjeshnilange/gor/statuses/{sha}","languages_url":"https://api.github.com/repos/manjeshnilange/gor/languages","stargazers_url":"https://api.github.com/repos/manjeshnilange/gor/stargazers","contributors_url":"https://api.github.com/repos/manjeshnilange/gor/contributors","subscribers_url":"https://api.github.com/repos/manjeshnilange/gor/subscribers","subscription_url":"https://api.github.com/repos/manjeshnilange/gor/subscription","commits_url":"https://api.github.com/repos/manjeshnilange/gor/commits{/sha}","git_commits_url":"https://api.github.com/repos/manjeshnilange/gor/git/commits{/sha}","comments_url":"https://api.github.com/repos/manjeshnilange/gor/comments{/number}","issue_comment_url":"https://api.github.com/repos/manjeshnilange/gor/issues/comments{/number}","contents_url":"https://api.github.com/repos/manjeshnilange/gor/contents/{+path}","compare_url":"https://api.github.com/repos/manjeshnilange/gor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manjeshnilange/gor/merges","archive_url":"https://api.github.com/repos/manjeshnilange/gor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manjeshnilange/gor/downloads","issues_url":"https://api.github.com/repos/manjeshnilange/gor/issues{/number}","pulls_url":"https://api.github.com/repos/manjeshnilange/gor/pulls{/number}","milestones_url":"https://api.github.com/repos/manjeshnilange/gor/milestones{/number}","notifications_url":"https://api.github.com/repos/manjeshnilange/gor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manjeshnilange/gor/labels{/name}","releases_url":"https://api.github.com/repos/manjeshnilange/gor/releases{/id}","deployments_url":"https://api.github.com/repos/manjeshnilange/gor/deployments","created_at":"2016-10-18T20:29:43Z","updated_at":"2016-10-18T20:29:44Z","pushed_at":"2016-10-19T21:26:21Z","git_url":"git://github.com/manjeshnilange/gor.git","ssh_url":"git@github.com:manjeshnilange/gor.git","clone_url":"https://github.com/manjeshnilange/gor.git","svn_url":"https://github.com/manjeshnilange/gor","homepage":"https://goreplay.org","size":11135,"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":"buger:master","ref":"master","sha":"47db326b0f0e5dd30d3f432821a4cf8e27517211","user":{"login":"buger","id":14009,"avatar_url":"https://avatars.githubusercontent.com/u/14009?v=3","gravatar_id":"","url":"https://api.github.com/users/buger","html_url":"https://github.com/buger","followers_url":"https://api.github.com/users/buger/followers","following_url":"https://api.github.com/users/buger/following{/other_user}","gists_url":"https://api.github.com/users/buger/gists{/gist_id}","starred_url":"https://api.github.com/users/buger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buger/subscriptions","organizations_url":"https://api.github.com/users/buger/orgs","repos_url":"https://api.github.com/users/buger/repos","events_url":"https://api.github.com/users/buger/events{/privacy}","received_events_url":"https://api.github.com/users/buger/received_events","type":"User","site_admin":false},"repo":{"id":10379607,"name":"gor","full_name":"buger/gor","owner":{"login":"buger","id":14009,"avatar_url":"https://avatars.githubusercontent.com/u/14009?v=3","gravatar_id":"","url":"https://api.github.com/users/buger","html_url":"https://github.com/buger","followers_url":"https://api.github.com/users/buger/followers","following_url":"https://api.github.com/users/buger/following{/other_user}","gists_url":"https://api.github.com/users/buger/gists{/gist_id}","starred_url":"https://api.github.com/users/buger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buger/subscriptions","organizations_url":"https://api.github.com/users/buger/orgs","repos_url":"https://api.github.com/users/buger/repos","events_url":"https://api.github.com/users/buger/events{/privacy}","received_events_url":"https://api.github.com/users/buger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/buger/gor","description":"Gor is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.","fork":false,"url":"https://api.github.com/repos/buger/gor","forks_url":"https://api.github.com/repos/buger/gor/forks","keys_url":"https://api.github.com/repos/buger/gor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buger/gor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buger/gor/teams","hooks_url":"https://api.github.com/repos/buger/gor/hooks","issue_events_url":"https://api.github.com/repos/buger/gor/issues/events{/number}","events_url":"https://api.github.com/repos/buger/gor/events","assignees_url":"https://api.github.com/repos/buger/gor/assignees{/user}","branches_url":"https://api.github.com/repos/buger/gor/branches{/branch}","tags_url":"https://api.github.com/repos/buger/gor/tags","blobs_url":"https://api.github.com/repos/buger/gor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buger/gor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buger/gor/git/refs{/sha}","trees_url":"https://api.github.com/repos/buger/gor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buger/gor/statuses/{sha}","languages_url":"https://api.github.com/repos/buger/gor/languages","stargazers_url":"https://api.github.com/repos/buger/gor/stargazers","contributors_url":"https://api.github.com/repos/buger/gor/contributors","subscribers_url":"https://api.github.com/repos/buger/gor/subscribers","subscription_url":"https://api.github.com/repos/buger/gor/subscription","commits_url":"https://api.github.com/repos/buger/gor/commits{/sha}","git_commits_url":"https://api.github.com/repos/buger/gor/git/commits{/sha}","comments_url":"https://api.github.com/repos/buger/gor/comments{/number}","issue_comment_url":"https://api.github.com/repos/buger/gor/issues/comments{/number}","contents_url":"https://api.github.com/repos/buger/gor/contents/{+path}","compare_url":"https://api.github.com/repos/buger/gor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buger/gor/merges","archive_url":"https://api.github.com/repos/buger/gor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buger/gor/downloads","issues_url":"https://api.github.com/repos/buger/gor/issues{/number}","pulls_url":"https://api.github.com/repos/buger/gor/pulls{/number}","milestones_url":"https://api.github.com/repos/buger/gor/milestones{/number}","notifications_url":"https://api.github.com/repos/buger/gor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buger/gor/labels{/name}","releases_url":"https://api.github.com/repos/buger/gor/releases{/id}","deployments_url":"https://api.github.com/repos/buger/gor/deployments","created_at":"2013-05-30T09:29:07Z","updated_at":"2016-10-23T00:24:48Z","pushed_at":"2016-10-19T21:28:07Z","git_url":"git://github.com/buger/gor.git","ssh_url":"git@github.com:buger/gor.git","clone_url":"https://github.com/buger/gor.git","svn_url":"https://github.com/buger/gor","homepage":"https://goreplay.org","size":11530,"stargazers_count":6283,"watchers_count":6283,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":536,"mirror_url":null,"open_issues_count":23,"forks":536,"open_issues":23,"watchers":6283,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/buger/gor/pulls/375"},"html":{"href":"https://github.com/buger/gor/pull/375"},"issue":{"href":"https://api.github.com/repos/buger/gor/issues/375"},"comments":{"href":"https://api.github.com/repos/buger/gor/issues/375/comments"},"review_comments":{"href":"https://api.github.com/repos/buger/gor/pulls/375/comments"},"review_comment":{"href":"https://api.github.com/repos/buger/gor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/buger/gor/pulls/375/commits"},"statuses":{"href":"https://api.github.com/repos/buger/gor/statuses/424759155de23c0a25121c1125b62a7ab04bea64"}}}}
{"actor":{"display_login":"buger"}}