{"action":"created","issue":{"url":"https://api.github.com/repos/curl/curl/issues/659","repository_url":"https://api.github.com/repos/curl/curl","labels_url":"https://api.github.com/repos/curl/curl/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/curl/curl/issues/659/comments","events_url":"https://api.github.com/repos/curl/curl/issues/659/events","html_url":"https://github.com/curl/curl/issues/659","id":133861208,"number":659,"title":"curl(1) enters busy loop if header size >= 64KB (HTTP2 only)","user":{"login":"kazuho","id":41567,"avatar_url":"https://avatars.githubusercontent.com/u/41567?v=3","gravatar_id":"","url":"https://api.github.com/users/kazuho","html_url":"https://github.com/kazuho","followers_url":"https://api.github.com/users/kazuho/followers","following_url":"https://api.github.com/users/kazuho/following{/other_user}","gists_url":"https://api.github.com/users/kazuho/gists{/gist_id}","starred_url":"https://api.github.com/users/kazuho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazuho/subscriptions","organizations_url":"https://api.github.com/users/kazuho/orgs","repos_url":"https://api.github.com/users/kazuho/repos","events_url":"https://api.github.com/users/kazuho/events{/privacy}","received_events_url":"https://api.github.com/users/kazuho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/curl/curl/labels/HTTP/2","name":"HTTP/2","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-02-16T01:56:30Z","updated_at":"2016-02-22T21:17:32Z","closed_at":null,"body":"curl command seems to enter a busy loop if the size of header becomes greater than 65,534 bytes when HTTP/2 is used.\r\n\r\nSteps to reproduce:\r\n1. build [h2o](https://h2o.examp1e.net/) 1.7.0\r\n2. run h2o with following configuration\r\n3. run `curl -k https://127.0.0.1:8081/`\r\n\r\n```yaml\r\nlisten:\r\n  port: 8081\r\n  ssl:\r\n    key-file: examples/h2o/server.key\r\n    certificate-file: examples/h2o/server.crt\r\nhosts:\r\n  default:\r\n    paths:\r\n      /:\r\n        mruby.handler: |\r\n          Proc.new do |env|\r\n            [200, {\"x-foo\" => \"1\" * 65530}, []]\r\n          end\r\n```\r\n\r\nThe command runs as expected if the size of the header value is 65,529 bytes.\r\n\r\nEDIT: I am using curl 7.47.1 with nghttp2 @ 094168a on OS X 10.9.5."},"comment":{"url":"https://api.github.com/repos/curl/curl/issues/comments/187387269","html_url":"https://github.com/curl/curl/issues/659#issuecomment-187387269","issue_url":"https://api.github.com/repos/curl/curl/issues/659","id":187387269,"user":{"login":"jay","id":965580,"avatar_url":"https://avatars.githubusercontent.com/u/965580?v=3","gravatar_id":"","url":"https://api.github.com/users/jay","html_url":"https://github.com/jay","followers_url":"https://api.github.com/users/jay/followers","following_url":"https://api.github.com/users/jay/following{/other_user}","gists_url":"https://api.github.com/users/jay/gists{/gist_id}","starred_url":"https://api.github.com/users/jay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jay/subscriptions","organizations_url":"https://api.github.com/users/jay/orgs","repos_url":"https://api.github.com/users/jay/repos","events_url":"https://api.github.com/users/jay/events{/privacy}","received_events_url":"https://api.github.com/users/jay/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T21:17:32Z","updated_at":"2016-02-22T21:17:32Z","body":"@kazuho if you could try his branch and let us know before wednesday that would be great."}}