{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/5058","repository_url":"https://api.github.com/repos/esp8266/Arduino","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/5058/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/5058/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/5058/events","html_url":"https://github.com/esp8266/Arduino/issues/5058","id":351794326,"node_id":"MDU6SXNzdWUzNTE3OTQzMjY=","number":5058,"title":"V2.4.2 fails regularly when sending \"Connection: close\" on client.print (GET...","user":{"login":"mars000","id":19469711,"node_id":"MDQ6VXNlcjE5NDY5NzEx","avatar_url":"https://avatars2.githubusercontent.com/u/19469711?v=4","gravatar_id":"","url":"https://api.github.com/users/mars000","html_url":"https://github.com/mars000","followers_url":"https://api.github.com/users/mars000/followers","following_url":"https://api.github.com/users/mars000/following{/other_user}","gists_url":"https://api.github.com/users/mars000/gists{/gist_id}","starred_url":"https://api.github.com/users/mars000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mars000/subscriptions","organizations_url":"https://api.github.com/users/mars000/orgs","repos_url":"https://api.github.com/users/mars000/repos","events_url":"https://api.github.com/users/mars000/events{/privacy}","received_events_url":"https://api.github.com/users/mars000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-18T06:00:46Z","updated_at":"2018-08-20T12:14:57Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nI'm using ESP8266 V2.4.2\r\n\r\nNoticed that when I upgraded from V2.4.1 that regularly if I use the \"close\" connection vs \"open\" it fails to read HTTP headers correctly. Worked all fine on V2.4.0 and V2.4.1\r\n\r\nNot sure what the issue it.  As said - works perfectly if I use Connection: open on V2.4.2 but not \"Connection: close\" \r\n\r\n\r\nThe call I'm using is:\r\n\r\n```\r\nclient.print(String(\"GET \") + url_local + \" HTTP/1.1\\r\\n\" +\r\n\t\t\t\t\t\t\t \"Host: \" + host_local + \"\\r\\n\" +\r\n\t\t\t\t\t\t\t \"User-Agent: BuildFailureDetectorESP8266\\r\\n\" +\r\n\t\t\t\t\t\t\t \"Connection: close\\r\\n\\r\\n\"); // close connection\r\n```\r\n\r\n\r\n----------------------------- Delete below -----------------------------\r\n\r\nIf your issue is a general question, starts similar to \"How do I..\", is related to 3rd party libs, or is related to hardware, please discuss at a community forum like esp8266.com.\r\n\r\nINSTRUCTIONS\r\n============\r\nIf you do not follow these instructions, your issue may be dismissed.\r\n\r\n1. Follow the checklist under Basic Infos and fill in the [ ] spaces with an X.\r\n2. Fill in all the fields under Platform and Settings in IDE marked with [ ] (pick the correct option for you in each case, delete the others).\r\n3. If you haven't already done so, test your issue against current master branch (aka latest git), because it may have been already fixed.\r\n4. Describe your problem.\r\n5. If you have a STACK DUMP decode it:\r\n\r\nhttps://arduino-esp8266.readthedocs.io/en/latest/Troubleshooting/stack_dump.html\r\n\r\n6. Include a Minimal Complete Reproducible Example sketch that shows your issue. Do not include your entire project, or a huge piece of code.\r\n7. Include debug messages:\r\n\r\nhttps://arduino-esp8266.readthedocs.io/en/latest/Troubleshooting/debugging.html \r\n\r\n8. Use markup (buttons above) and the Preview tab to check what the issue will look like.\r\n9. Delete these instructions from the above to the below marker lines before submitting this issue.\r\n\r\n\r\n----------------------------- Delete above -----------------------------\r\n\r\n### Basic Infos\r\n\r\n- [ ] This issue complies with the [issue POLICY doc](https://github.com/esp8266/Arduino/blob/master/POLICY.md).\r\n- [ ] I have read the documentation at [readthedocs](https://arduino-esp8266.readthedocs.io/en/latest) and the issue is not addressed there.\r\n- [ ] I have tested that the issue is present in current master branch (aka latest git).\r\n- [ ] I have searched the issue tracker for a similar issue.\r\n- [ ] If there is a stack dump, I have decoded it.\r\n- [ ] I have filled out all fields below.\r\n\r\n#### Platform\r\n\r\n- Hardware:\t\t\t\t\t[ESP-12|ESP-01|ESP-07|ESP8285 device|other]\r\n- Core Version:\t\t\t[latest git hash or date]\r\n- Development Env:\t\t[Arduino IDE|Platformio|Make|other]\r\n- Operating System:\t\t[Windows|Ubuntu|MacOS]\r\n\r\n### Settings in IDE\r\n\r\n- Module:  \t\t\t[Generic ESP8266 Module|Wemos D1 mini r2|Nodemcu|other]\r\n- Flash Mode:\t\t\t[qio|dio|other]\r\n- Flash Size: \t\t[4MB/1MB]\r\n- lwip Variant:   [v1.4|v2 Lower Memory|Higher Bandwidth]\r\n- Reset Method:\t\t[ck|nodemcu]\r\n- Flash Frequency:\t[40Mhz]\r\n- CPU Frequency:\t\t[80Mhz|160MHz]\r\n- Upload Using:\t\t[OTA|SERIAL]\r\n- Upload Speed:   [115200|other] (serial upload only)\r\n\r\n\r\n### Problem Description\r\n\r\nDetailed problem description goes here.\r\n\r\n\r\n### [MCVE](https://stackoverflow.com/help/mcve) Sketch\r\n\r\n```cpp\r\n\r\n#include <Arduino.h>\r\n\r\nvoid setup() {\r\n\r\n}\r\n\r\nvoid loop() {\r\n\r\n}\r\n\r\n```\r\n\r\n### Debug Messages\r\n\r\n```\r\nDebug messages go here\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/414296014","html_url":"https://github.com/esp8266/Arduino/issues/5058#issuecomment-414296014","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/5058","id":414296014,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDI5NjAxNA==","user":{"login":"d-a-v","id":4800356,"node_id":"MDQ6VXNlcjQ4MDAzNTY=","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-08-20T12:14:57Z","updated_at":"2018-08-20T12:14:57Z","author_association":"COLLABORATOR","body":"This issues looks like the other above mentioned #5021 which is a user error with a sketch that worked with previous versions (unknown reason so far) but badly handling http protocol. Browser header's was not fully read (It can be fixed by at least honoring browser by reading its full http header before closing the connection). \r\n\r\nWithout MCVE, we can't help. We need more details."}}
{"actor":{"display_login":"d-a-v"}}