{"action":"created","issue":{"url":"https://api.github.com/repos/apache/trafficserver/issues/549","repository_url":"https://api.github.com/repos/apache/trafficserver","labels_url":"https://api.github.com/repos/apache/trafficserver/issues/549/labels{/name}","comments_url":"https://api.github.com/repos/apache/trafficserver/issues/549/comments","events_url":"https://api.github.com/repos/apache/trafficserver/issues/549/events","html_url":"https://github.com/apache/trafficserver/pull/549","id":145667813,"number":549,"title":"TS-4299 Allows for the content length to be processed even with C: close","user":{"login":"zwoop","id":202131,"avatar_url":"https://avatars.githubusercontent.com/u/202131?v=3","gravatar_id":"","url":"https://api.github.com/users/zwoop","html_url":"https://github.com/zwoop","followers_url":"https://api.github.com/users/zwoop/followers","following_url":"https://api.github.com/users/zwoop/following{/other_user}","gists_url":"https://api.github.com/users/zwoop/gists{/gist_id}","starred_url":"https://api.github.com/users/zwoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwoop/subscriptions","organizations_url":"https://api.github.com/users/zwoop/orgs","repos_url":"https://api.github.com/users/zwoop/repos","events_url":"https://api.github.com/users/zwoop/events{/privacy}","received_events_url":"https://api.github.com/users/zwoop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-04T12:18:54Z","updated_at":"2016-04-04T15:02:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/trafficserver/pulls/549","html_url":"https://github.com/apache/trafficserver/pull/549","diff_url":"https://github.com/apache/trafficserver/pull/549.diff","patch_url":"https://github.com/apache/trafficserver/pull/549.patch"},"body":"This might look clunky, but a) I tried to minimize the possible damage done to the FetchSM and b) the additions done earlier re: Connection: close are difficult to test / verify. I'd be OK personally to just remove the check, but I believe it was added for a reason back then. I'm also open to other suggestions for a fix, but I do know that this fix fixes my problem with H2 :).\r\n\r\nSee e83b131b and TS-3049 for the origin of this problem."},"comment":{"url":"https://api.github.com/repos/apache/trafficserver/issues/comments/205338877","html_url":"https://github.com/apache/trafficserver/pull/549#issuecomment-205338877","issue_url":"https://api.github.com/repos/apache/trafficserver/issues/549","id":205338877,"user":{"login":"zwoop","id":202131,"avatar_url":"https://avatars.githubusercontent.com/u/202131?v=3","gravatar_id":"","url":"https://api.github.com/users/zwoop","html_url":"https://github.com/zwoop","followers_url":"https://api.github.com/users/zwoop/followers","following_url":"https://api.github.com/users/zwoop/following{/other_user}","gists_url":"https://api.github.com/users/zwoop/gists{/gist_id}","starred_url":"https://api.github.com/users/zwoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwoop/subscriptions","organizations_url":"https://api.github.com/users/zwoop/orgs","repos_url":"https://api.github.com/users/zwoop/repos","events_url":"https://api.github.com/users/zwoop/events{/privacy}","received_events_url":"https://api.github.com/users/zwoop/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T15:02:21Z","updated_at":"2016-04-04T15:02:21Z","body":"@maskit Exactly, that's why it hangs the client, because even though there is a Content-Length header, the existence of Connection: close short circuits the code, such that we don't set resp_content_length. Moving down the check for Connection: close addressed this, by allowing resp_content_length to be set if there is a CL: header."}}