{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/15929","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/15929/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/15929/comments","events_url":"https://api.github.com/repos/golang/go/issues/15929/events","html_url":"https://github.com/golang/go/issues/15929","id":158055658,"number":15929,"title":"net/http: Server.ReadTimeout closes connection before response is finished","user":{"login":"anacrolix","id":988750,"avatar_url":"https://avatars.githubusercontent.com/u/988750?v=3","gravatar_id":"","url":"https://api.github.com/users/anacrolix","html_url":"https://github.com/anacrolix","followers_url":"https://api.github.com/users/anacrolix/followers","following_url":"https://api.github.com/users/anacrolix/following{/other_user}","gists_url":"https://api.github.com/users/anacrolix/gists{/gist_id}","starred_url":"https://api.github.com/users/anacrolix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anacrolix/subscriptions","organizations_url":"https://api.github.com/users/anacrolix/orgs","repos_url":"https://api.github.com/users/anacrolix/repos","events_url":"https://api.github.com/users/anacrolix/events{/privacy}","received_events_url":"https://api.github.com/users/anacrolix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"assignees":[{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/6","html_url":"https://github.com/golang/go/milestones/Unplanned","labels_url":"https://api.github.com/repos/golang/go/milestones/6/labels","id":1055141,"number":6,"title":"Unplanned","description":"No plan to fix in any specific release.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":1333,"closed_issues":428,"state":"open","created_at":"2015-04-06T20:47:19Z","updated_at":"2016-06-29T16:15:47Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":1,"created_at":"2016-06-02T04:09:50Z","updated_at":"2016-06-29T21:17:07Z","closed_at":null,"body":"The http.Server.ReadTimeout introduces a timeout for maximum time to consume a request from the wire. However upon completely reading a request, the next request is started, and times out, while the response for the previous request is still being written. This causes the connection to be closed, prematurely closing the ResponseWriter. Closing of the connection should be delayed until the active response is written, or better yet, the ReadTimeout should not begin until the active response is completed (since the connection is not idle).\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/229491643","html_url":"https://github.com/golang/go/issues/15929#issuecomment-229491643","issue_url":"https://api.github.com/repos/golang/go/issues/15929","id":229491643,"user":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T21:17:07Z","updated_at":"2016-06-29T21:17:07Z","body":"We don't start reading the next request until your Handler is done and its output is flushed.\r\n\r\nGot a demo program showing a repro? Is your ReadTimeout super short?\r\n\r\n\r\n"}}
{"actor":{"display_login":"bradfitz"}}