{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/4712","repository_url":"https://api.github.com/repos/esp8266/Arduino","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/4712/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/4712/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/4712/events","html_url":"https://github.com/esp8266/Arduino/issues/4712","id":320857747,"number":4712,"title":"HTTP Server: when the client answer slowly ESP-12E crashes and doesn't send data","user":{"login":"calfizzi","id":19822069,"avatar_url":"https://avatars1.githubusercontent.com/u/19822069?v=4","gravatar_id":"","url":"https://api.github.com/users/calfizzi","html_url":"https://github.com/calfizzi","followers_url":"https://api.github.com/users/calfizzi/followers","following_url":"https://api.github.com/users/calfizzi/following{/other_user}","gists_url":"https://api.github.com/users/calfizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/calfizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calfizzi/subscriptions","organizations_url":"https://api.github.com/users/calfizzi/orgs","repos_url":"https://api.github.com/users/calfizzi/repos","events_url":"https://api.github.com/users/calfizzi/events{/privacy}","received_events_url":"https://api.github.com/users/calfizzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"d-a-v","id":4800356,"avatar_url":"https://avatars3.githubusercontent.com/u/4800356?v=4","gravatar_id":"","url":"https://api.github.com/users/d-a-v","html_url":"https://github.com/d-a-v","followers_url":"https://api.github.com/users/d-a-v/followers","following_url":"https://api.github.com/users/d-a-v/following{/other_user}","gists_url":"https://api.github.com/users/d-a-v/gists{/gist_id}","starred_url":"https://api.github.com/users/d-a-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-a-v/subscriptions","organizations_url":"https://api.github.com/users/d-a-v/orgs","repos_url":"https://api.github.com/users/d-a-v/repos","events_url":"https://api.github.com/users/d-a-v/events{/privacy}","received_events_url":"https://api.github.com/users/d-a-v/received_events","type":"User","site_admin":false},"assignees":[{"login":"d-a-v","id":4800356,"avatar_url":"https://avatars3.githubusercontent.com/u/4800356?v=4","gravatar_id":"","url":"https://api.github.com/users/d-a-v","html_url":"https://github.com/d-a-v","followers_url":"https://api.github.com/users/d-a-v/followers","following_url":"https://api.github.com/users/d-a-v/following{/other_user}","gists_url":"https://api.github.com/users/d-a-v/gists{/gist_id}","starred_url":"https://api.github.com/users/d-a-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-a-v/subscriptions","organizations_url":"https://api.github.com/users/d-a-v/orgs","repos_url":"https://api.github.com/users/d-a-v/repos","events_url":"https://api.github.com/users/d-a-v/events{/privacy}","received_events_url":"https://api.github.com/users/d-a-v/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-05-07T15:53:13Z","updated_at":"2018-05-12T00:15:02Z","closed_at":null,"author_association":"NONE","body":"**Basic Infos**\r\n- [X] This issue complies with the issue POLICY doc.\r\n- [X] I have read the documentation at readthedocs and the issue is not addressed there.\r\n- [x] I have tested that the issue is present in current master branch (aka latest git).\r\n- [X] I have searched the issue tracker for a similar issue.\r\n- [X] If there is a stack dump, I have decoded it.\r\n- [X] I have filled out all fields below.\r\n\r\n**Platform**\r\nHardware:\t[ESP-12E]\r\nCore Version:\t[latest git hash]\r\nDevelopment Env:\t[Arduino IDE]\r\nOperating System:\t[Windows]\r\n\r\n**Settings in IDE**\r\nModule: [Nodemcu]\r\nFlash Mode:\t[qio]\r\nFlash Size: [2MB]\r\nlwip Variant: [v2 lower]\r\nReset Method:\t[ck|nodemcu]\r\nFlash Frequency:\t[40Mhz]\r\nCPU Frequency:\t[80Mhz]\r\nUpload Using:\t[SERIAL]\r\nUpload Speed: [115200] (serial upload only)\r\n\r\n**Problem Description**\r\nI tried to build an example for you of my issue.\r\nI built a simple program that answer via HTTP showing the \"Romeo And Juliet\" romanze as web page. If you compile and run the code on your ESP-12E you can easily connect to its web server on port 80. It will response the complete text of the R&J romanze as HTML page. \r\n\r\nTo better understand the issue, I created a _**SendSubChunk_P**_ function that send the HTML chunks of the exact size of available write buffer at the moment.\r\n\r\nIf you try to connect by a slow dispositive like a 3G mobile, while data transfer the wifi connection of ESP-12E goes down. Some time it blocks as it is runing in a  infinite loop. I also created a simple C# client to simulate a slow internet connection and the result is the same\r\n\r\n\r\n\r\n**my example Sketch:**\r\n[HTTP_Issue_ESP8266.zip](https://github.com/esp8266/Arduino/files/1980427/HTTP_Issue_ESP8266.zip)\r\n\r\n**Simple C# Project:**\r\n[HttpClient.zip](https://github.com/esp8266/Arduino/files/1980429/HttpClient.zip)\r\n\r\n\r\nPlease let me know if I'm doing something wrong or if the issue really exists!\r\n\r\nBest Regards,\r\nMario Calfizzi\r\n"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/388515152","html_url":"https://github.com/esp8266/Arduino/issues/4712#issuecomment-388515152","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/4712","id":388515152,"user":{"login":"d-a-v","id":4800356,"avatar_url":"https://avatars3.githubusercontent.com/u/4800356?v=4","gravatar_id":"","url":"https://api.github.com/users/d-a-v","html_url":"https://github.com/d-a-v","followers_url":"https://api.github.com/users/d-a-v/followers","following_url":"https://api.github.com/users/d-a-v/following{/other_user}","gists_url":"https://api.github.com/users/d-a-v/gists{/gist_id}","starred_url":"https://api.github.com/users/d-a-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-a-v/subscriptions","organizations_url":"https://api.github.com/users/d-a-v/orgs","repos_url":"https://api.github.com/users/d-a-v/repos","events_url":"https://api.github.com/users/d-a-v/events{/privacy}","received_events_url":"https://api.github.com/users/d-a-v/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T00:15:02Z","updated_at":"2018-05-12T00:15:02Z","author_association":"COLLABORATOR","body":"It's in the Arduno IDE's `Tool` menu. `lwIP variant` and `Debug Port/Level` entries."}}
{"actor":{"display_login":"d-a-v"}}