{"action":"created","issue":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/868","labels_url":"https://api.github.com/repos/ninenines/cowboy/issues/868/labels{/name}","comments_url":"https://api.github.com/repos/ninenines/cowboy/issues/868/comments","events_url":"https://api.github.com/repos/ninenines/cowboy/issues/868/events","html_url":"https://github.com/ninenines/cowboy/issues/868","id":98890769,"number":868,"title":"cowboy multi frame http request handling","user":{"login":"aoeking","id":8343461,"avatar_url":"https://avatars.githubusercontent.com/u/8343461?v=3","gravatar_id":"","url":"https://api.github.com/users/aoeking","html_url":"https://github.com/aoeking","followers_url":"https://api.github.com/users/aoeking/followers","following_url":"https://api.github.com/users/aoeking/following{/other_user}","gists_url":"https://api.github.com/users/aoeking/gists{/gist_id}","starred_url":"https://api.github.com/users/aoeking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aoeking/subscriptions","organizations_url":"https://api.github.com/users/aoeking/orgs","repos_url":"https://api.github.com/users/aoeking/repos","events_url":"https://api.github.com/users/aoeking/events{/privacy}","received_events_url":"https://api.github.com/users/aoeking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-04T05:05:05Z","updated_at":"2015-08-06T17:10:01Z","closed_at":null,"body":"Hi All,\r\n\r\nRecently we made REST calls using android application. When the connection is on LTE the system worked fine and when the connection is slow it appeared that cowboy did not receive the body of the POST  request. Investigations shows us that when the connection is slow android it self sends the http packets by multiple frames.\r\n\r\nWhen it comes to the cowboy it did not process the body part even thought the data received to the ranch_tcp module. But after putting few logs in to \"recv(Socket, Length, Timeout)\" function in ranch_tcp we got the data but in separate function calls. Please refer the attachment for tcpdump image.\r\n\r\nranch_tcp recv :- {ok,<<\"POST /rest/subscribers HTTP/1.1\\r\\nContent-Type: application/json\\r\\nContent-Length: 336\\r\\nHost: xxx.xx.xx.xxx:80\\r\\nConnection: Keep-Alive\\r\\n\\r\\n\">>}\r\n\r\nranch_tcp recv :- {ok,<<\"{\\\"email\\\":\\\"xxxxxxxxxxxxxxxxx@xxxxxxxxxxxxx.com\\\",\\\"password\\\":\\\"google pwd\\\",\\\"imsi\\\":\\\"xxxxxxxxxxxxxxx\\\",\\\"imei\\\":\\\"xxxxxxxxxxxxxxx\\\",\\\"oauth_type\\\":\\\"google\\\",\\\"nickname\\\":\\\"rsfggvg\\\",\\\"image_url\\\":\\\"aHR0cHM6Ly9saDUuZ29vZ2xldXNlcmNvbnRlbyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy\\\\/c3o9NTA=\\\",\\\"mobile\\\":\\\"xx@xxxxxxxxx\\\"}\">>}\r\n\r\n![test](https://cloud.githubusercontent.com/assets/8343461/9053580/f15059a4-3a76-11e5-8129-f86556bc3b49.png)\r\n\r\nAny idea how to solve this.\r\n\r\nThanks & Best Regards,\r\nNuwan"},"comment":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/comments/128446425","html_url":"https://github.com/ninenines/cowboy/issues/868#issuecomment-128446425","issue_url":"https://api.github.com/repos/ninenines/cowboy/issues/868","id":128446425,"user":{"login":"essen","id":141739,"avatar_url":"https://avatars.githubusercontent.com/u/141739?v=3","gravatar_id":"","url":"https://api.github.com/users/essen","html_url":"https://github.com/essen","followers_url":"https://api.github.com/users/essen/followers","following_url":"https://api.github.com/users/essen/following{/other_user}","gists_url":"https://api.github.com/users/essen/gists{/gist_id}","starred_url":"https://api.github.com/users/essen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/essen/subscriptions","organizations_url":"https://api.github.com/users/essen/orgs","repos_url":"https://api.github.com/users/essen/repos","events_url":"https://api.github.com/users/essen/events{/privacy}","received_events_url":"https://api.github.com/users/essen/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T17:10:01Z","updated_at":"2015-08-06T17:10:01Z","body":"I did not fully understand this. There should be no issue with data arriving in separate packets, Cowboy does the reassembly itself. Can you show what the code you've written to handle the body looks like, and also give me what Cowboy version you're using?"}}