Description
Description
When using chrome 99.0.4844.51 (linux) to access the HTTPS server, the microcontroller goes into a infinite loop. It happens when it is parsing the client headers.
How To Reproduce
Steps to reproduce the behavior:
- Compile and upload this example: https://github.com/fhessel/esp32_https_server/blob/master/examples/Self-Signed-Certificate/Self-Signed-Certificate.ino
- Go to https://esp32-ip/ (where "esp32-ip" is the local ip assigned by the router)
- Accept the certificate exception
- See the error: the server never responds.
If using curl or wget it works fine. I have checked that in firefox also works.
Expected Behavior
Should respond with the expected html code
Actual Behavior
The response never arrives to the client.
ESP32 Module
Please provide specifications of your module
- Chip is ESP32-D0WDQ6 (revision 1)
Software (please complete the following information if applicable)
- Arduino 1.8.19
- OS: Ubuntu 20.04 LTS
- Client used to access the server: Chrome 99.0.4844.51
Possible solution
See patch for "possible" solution. I know it is not the right answer. But when I apply this patch to the code, it works fine in chrome too.
I don't understand where is exactly the problem, i think that is the management of the buffer. Maybe the headers are too long??