{"action":"opened","issue":{"url":"https://api.github.com/repos/flynn/flynn/issues/958","labels_url":"https://api.github.com/repos/flynn/flynn/issues/958/labels{/name}","comments_url":"https://api.github.com/repos/flynn/flynn/issues/958/comments","events_url":"https://api.github.com/repos/flynn/flynn/issues/958/events","html_url":"https://github.com/flynn/flynn/issues/958","id":56592108,"number":958,"title":"router: use CloseNotify to cancel requests when clients disconnect","user":{"login":"bgentry","id":114033,"avatar_url":"https://avatars.githubusercontent.com/u/114033?v=3","gravatar_id":"","url":"https://api.github.com/users/bgentry","html_url":"https://github.com/bgentry","followers_url":"https://api.github.com/users/bgentry/followers","following_url":"https://api.github.com/users/bgentry/following{/other_user}","gists_url":"https://api.github.com/users/bgentry/gists{/gist_id}","starred_url":"https://api.github.com/users/bgentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgentry/subscriptions","organizations_url":"https://api.github.com/users/bgentry/orgs","repos_url":"https://api.github.com/users/bgentry/repos","events_url":"https://api.github.com/users/bgentry/events{/privacy}","received_events_url":"https://api.github.com/users/bgentry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-04T21:43:29Z","updated_at":"2015-02-04T21:43:29Z","closed_at":null,"body":"When a client disconnects, the router should also disconnect from backends (so they can stop doing unnecessary work). This was originally implemented in #926, but unfortunately that had to be put on hold due to incompatibilities in net/http between the `CloseNotifier` and `Hijacker` interfaces. That's documented in https://github.com/golang/go/issues/9763\r\n\r\nOnce that issue is resolved, it should be possible to alter the router so that it behaves well when clients go away."}}