{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-net/issues/449","repository_url":"https://api.github.com/repos/aws/aws-sdk-net","labels_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/449/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/449/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/449/events","html_url":"https://github.com/aws/aws-sdk-net/pull/449","id":174498060,"number":449,"title":"Close HttpWebRequest's response stream on WebExceptions","user":{"login":"lewislabs","id":12956835,"avatar_url":"https://avatars.githubusercontent.com/u/12956835?v=3","gravatar_id":"","url":"https://api.github.com/users/lewislabs","html_url":"https://github.com/lewislabs","followers_url":"https://api.github.com/users/lewislabs/followers","following_url":"https://api.github.com/users/lewislabs/following{/other_user}","gists_url":"https://api.github.com/users/lewislabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lewislabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewislabs/subscriptions","organizations_url":"https://api.github.com/users/lewislabs/orgs","repos_url":"https://api.github.com/users/lewislabs/repos","events_url":"https://api.github.com/users/lewislabs/events{/privacy}","received_events_url":"https://api.github.com/users/lewislabs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-01T11:17:25Z","updated_at":"2016-10-04T17:17:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aws/aws-sdk-net/pulls/449","html_url":"https://github.com/aws/aws-sdk-net/pull/449","diff_url":"https://github.com/aws/aws-sdk-net/pull/449.diff","patch_url":"https://github.com/aws/aws-sdk-net/pull/449.patch"},"body":"If `httpRequest.GetResponse()` internally throws a `WebException` then there is still a response stream to close. I believe this is causing sockets to remain open and leading to #152 "},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-net/issues/comments/251452872","html_url":"https://github.com/aws/aws-sdk-net/pull/449#issuecomment-251452872","issue_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/449","id":251452872,"user":{"login":"gokarnm","id":5553390,"avatar_url":"https://avatars.githubusercontent.com/u/5553390?v=3","gravatar_id":"","url":"https://api.github.com/users/gokarnm","html_url":"https://github.com/gokarnm","followers_url":"https://api.github.com/users/gokarnm/followers","following_url":"https://api.github.com/users/gokarnm/following{/other_user}","gists_url":"https://api.github.com/users/gokarnm/gists{/gist_id}","starred_url":"https://api.github.com/users/gokarnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gokarnm/subscriptions","organizations_url":"https://api.github.com/users/gokarnm/orgs","repos_url":"https://api.github.com/users/gokarnm/repos","events_url":"https://api.github.com/users/gokarnm/events{/privacy}","received_events_url":"https://api.github.com/users/gokarnm/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T17:17:44Z","updated_at":"2016-10-04T17:17:44Z","body":"Hi @lewislabs , the changes look good! I'm curious about how you tested this, specifically [WriteContentToRequestBody()](https://github.com/aws/aws-sdk-net/blob/aws-sdk-net-v2/AWSSDK_DotNet35/Amazon.Runtime/Pipeline/HttpHandler/HttpHandler.cs#L75) throwing an exception leading to CompleteFailedRequest() being called. "}}
{"actor":{"display_login":"gokarnm"}}