{"action":"created","issue":{"url":"https://api.github.com/repos/franela/goreq/issues/116","labels_url":"https://api.github.com/repos/franela/goreq/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/franela/goreq/issues/116/comments","events_url":"https://api.github.com/repos/franela/goreq/issues/116/events","html_url":"https://github.com/franela/goreq/issues/116","id":110014580,"number":116,"title":"goreq.Request.Timeout behavior is different from http.Client.Timeout","user":{"login":"defia","id":3764189,"avatar_url":"https://avatars.githubusercontent.com/u/3764189?v=3","gravatar_id":"","url":"https://api.github.com/users/defia","html_url":"https://github.com/defia","followers_url":"https://api.github.com/users/defia/followers","following_url":"https://api.github.com/users/defia/following{/other_user}","gists_url":"https://api.github.com/users/defia/gists{/gist_id}","starred_url":"https://api.github.com/users/defia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defia/subscriptions","organizations_url":"https://api.github.com/users/defia/orgs","repos_url":"https://api.github.com/users/defia/repos","events_url":"https://api.github.com/users/defia/events{/privacy}","received_events_url":"https://api.github.com/users/defia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-06T14:04:03Z","updated_at":"2015-10-07T23:12:48Z","closed_at":null,"body":"http://play.golang.org/p/Fjv_Bf_UyH\r\nhangs on ioutil.ReadAll\r\n\r\nhttp://play.golang.org/p/TsXX5MyMC4\r\ntimeout works.\r\n\r\nwe have to override goreq.DefaultClient to set timeout flawlessly"},"comment":{"url":"https://api.github.com/repos/franela/goreq/issues/comments/146361876","html_url":"https://github.com/franela/goreq/issues/116#issuecomment-146361876","issue_url":"https://api.github.com/repos/franela/goreq/issues/116","id":146361876,"user":{"login":"sschepens","id":3072509,"avatar_url":"https://avatars.githubusercontent.com/u/3072509?v=3","gravatar_id":"","url":"https://api.github.com/users/sschepens","html_url":"https://github.com/sschepens","followers_url":"https://api.github.com/users/sschepens/followers","following_url":"https://api.github.com/users/sschepens/following{/other_user}","gists_url":"https://api.github.com/users/sschepens/gists{/gist_id}","starred_url":"https://api.github.com/users/sschepens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sschepens/subscriptions","organizations_url":"https://api.github.com/users/sschepens/orgs","repos_url":"https://api.github.com/users/sschepens/repos","events_url":"https://api.github.com/users/sschepens/events{/privacy}","received_events_url":"https://api.github.com/users/sschepens/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T23:12:48Z","updated_at":"2015-10-07T23:12:48Z","body":"Ok, this is a little more complicated, goreq stops the timer when request is answered, it doesn't care about the request body. I have to check what go does in this case, maybe we could set read timeout to that value or make timer stop when request body is closed."}}