{"action":"created","issue":{"url":"https://api.github.com/repos/tailhook/rotor-http/issues/34","repository_url":"https://api.github.com/repos/tailhook/rotor-http","labels_url":"https://api.github.com/repos/tailhook/rotor-http/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/tailhook/rotor-http/issues/34/comments","events_url":"https://api.github.com/repos/tailhook/rotor-http/issues/34/events","html_url":"https://github.com/tailhook/rotor-http/issues/34","id":139836197,"number":34,"title":"Client example hangs","user":{"login":"dignifiedquire","id":790842,"avatar_url":"https://avatars.githubusercontent.com/u/790842?v=3","gravatar_id":"","url":"https://api.github.com/users/dignifiedquire","html_url":"https://github.com/dignifiedquire","followers_url":"https://api.github.com/users/dignifiedquire/followers","following_url":"https://api.github.com/users/dignifiedquire/following{/other_user}","gists_url":"https://api.github.com/users/dignifiedquire/gists{/gist_id}","starred_url":"https://api.github.com/users/dignifiedquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dignifiedquire/subscriptions","organizations_url":"https://api.github.com/users/dignifiedquire/orgs","repos_url":"https://api.github.com/users/dignifiedquire/repos","events_url":"https://api.github.com/users/dignifiedquire/events{/privacy}","received_events_url":"https://api.github.com/users/dignifiedquire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-10T09:43:14Z","updated_at":"2016-03-10T15:51:17Z","closed_at":null,"body":"Hey, I'm trying out the example in `examples/client.rs`. It's running fine against the google.com address, but when trying it against my own server it will just hang after printing out the headers:\r\n\r\n```bash\r\ncargo run\r\n     Running `target/debug/ipfs-api`\r\n----- Headers -----\r\nStatus: 200 OK\r\nAccess-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output\r\nAccess-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output\r\nContent-Type: application/json\r\nServer: go-ipfs/0.4.0-dev\r\nTrailer: X-Stream-Error\r\nTransfer-Encoding: chunked\r\nDate: Thu, 10 Mar 2016 09:40:40 GMT\r\nTransfer-Encoding: chunked\r\n# hangs here\r\n```\r\n\r\nThe request when I use curl looks like this:\r\n\r\n```bash\r\ncurl -v localhost:5001/api/v0/version\r\n*   Trying ::1...\r\n* connect to ::1 port 5001 failed: Connection refused\r\n*   Trying fe80::1...\r\n* connect to fe80::1 port 5001 failed: Connection refused\r\n*   Trying 127.0.0.1...\r\n* Connected to localhost (127.0.0.1) port 5001 (#0)\r\n> GET /api/v0/version HTTP/1.1\r\n> Host: localhost:5001\r\n> User-Agent: curl/7.43.0\r\n> Accept: */*\r\n>\r\n< HTTP/1.1 200 OK\r\n< Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output\r\n< Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output\r\n< Content-Type: application/json\r\n< Server: go-ipfs/0.4.0-dev\r\n< Trailer: X-Stream-Error\r\n< Transfer-Encoding: chunked\r\n< Date: Thu, 10 Mar 2016 09:43:01 GMT\r\n< Transfer-Encoding: chunked\r\n<\r\n{\"Version\":\"0.4.0-dev\",\"Commit\":\"6f8ea13\",\"Repo\":\"3\"}\r\n* Connection #0 to host localhost left intact\r\n```"},"comment":{"url":"https://api.github.com/repos/tailhook/rotor-http/issues/comments/194917103","html_url":"https://github.com/tailhook/rotor-http/issues/34#issuecomment-194917103","issue_url":"https://api.github.com/repos/tailhook/rotor-http/issues/34","id":194917103,"user":{"login":"pyfisch","id":2781017,"avatar_url":"https://avatars.githubusercontent.com/u/2781017?v=3","gravatar_id":"","url":"https://api.github.com/users/pyfisch","html_url":"https://github.com/pyfisch","followers_url":"https://api.github.com/users/pyfisch/followers","following_url":"https://api.github.com/users/pyfisch/following{/other_user}","gists_url":"https://api.github.com/users/pyfisch/gists{/gist_id}","starred_url":"https://api.github.com/users/pyfisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyfisch/subscriptions","organizations_url":"https://api.github.com/users/pyfisch/orgs","repos_url":"https://api.github.com/users/pyfisch/repos","events_url":"https://api.github.com/users/pyfisch/events{/privacy}","received_events_url":"https://api.github.com/users/pyfisch/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T15:51:17Z","updated_at":"2016-03-10T15:51:17Z","body":"Increasing the buffer size did not help.\r\n\r\nAnother page I found also does not work: https://jigsaw.w3.org/HTTP/ChunkedScript\r\n\r\nIf I switch to progressive mode the first two chunks are received and then the client again hangs."}}