{"action":"created","issue":{"url":"https://api.github.com/repos/mono/mono/issues/1987","labels_url":"https://api.github.com/repos/mono/mono/issues/1987/labels{/name}","comments_url":"https://api.github.com/repos/mono/mono/issues/1987/comments","events_url":"https://api.github.com/repos/mono/mono/issues/1987/events","html_url":"https://github.com/mono/mono/pull/1987","id":101633797,"number":1987,"title":"Bug fix: reading of infinite web response can lead to connection loss","user":{"login":"BogdanovKirill","id":13848267,"avatar_url":"https://avatars.githubusercontent.com/u/13848267?v=3","gravatar_id":"","url":"https://api.github.com/users/BogdanovKirill","html_url":"https://github.com/BogdanovKirill","followers_url":"https://api.github.com/users/BogdanovKirill/followers","following_url":"https://api.github.com/users/BogdanovKirill/following{/other_user}","gists_url":"https://api.github.com/users/BogdanovKirill/gists{/gist_id}","starred_url":"https://api.github.com/users/BogdanovKirill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BogdanovKirill/subscriptions","organizations_url":"https://api.github.com/users/BogdanovKirill/orgs","repos_url":"https://api.github.com/users/BogdanovKirill/repos","events_url":"https://api.github.com/users/BogdanovKirill/events{/privacy}","received_events_url":"https://api.github.com/users/BogdanovKirill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-08-18T11:23:04Z","updated_at":"2015-08-18T13:31:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mono/mono/pulls/1987","html_url":"https://github.com/mono/mono/pull/1987","diff_url":"https://github.com/mono/mono/pull/1987.diff","patch_url":"https://github.com/mono/mono/pull/1987.patch"},"body":"When HttpWebRequest is used to download infinite (ContentLength not set) response from web server, we can see that after reading about 2 GB (Int32.MaxValue) of data, totalRead variable can be equal to contentLength (which is int32.MaxValue). Then WebConnectionStream thinks that all data is received (see soft condition totalRead >= contentLength), but this is not correct. Seems to me the easiest way to fix that is to forbid increment of totalRead variable. Check it please."},"comment":{"url":"https://api.github.com/repos/mono/mono/issues/comments/132206184","html_url":"https://github.com/mono/mono/pull/1987#issuecomment-132206184","issue_url":"https://api.github.com/repos/mono/mono/issues/1987","id":132206184,"user":{"login":"BogdanovKirill","id":13848267,"avatar_url":"https://avatars.githubusercontent.com/u/13848267?v=3","gravatar_id":"","url":"https://api.github.com/users/BogdanovKirill","html_url":"https://github.com/BogdanovKirill","followers_url":"https://api.github.com/users/BogdanovKirill/followers","following_url":"https://api.github.com/users/BogdanovKirill/following{/other_user}","gists_url":"https://api.github.com/users/BogdanovKirill/gists{/gist_id}","starred_url":"https://api.github.com/users/BogdanovKirill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BogdanovKirill/subscriptions","organizations_url":"https://api.github.com/users/BogdanovKirill/orgs","repos_url":"https://api.github.com/users/BogdanovKirill/repos","events_url":"https://api.github.com/users/BogdanovKirill/events{/privacy}","received_events_url":"https://api.github.com/users/BogdanovKirill/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T13:31:19Z","updated_at":"2015-08-18T13:31:19Z","body":"Knocte, check it again please."}}