Closed lbussy closed 4 years ago
Backstory: I wrote this class to support the IoTaWatt project , also in this account. That runs on an ESP8266, and serves my needs. I posted it in the event others might find it useful. Fast-forward, I have a port of IoTaWatt to ESP32, and added some threadsafe locking. It serves my needs fine for that as well.
Your issue is probably caused by a problem with flow control in the ESP32 AsyncTCP or my use of it. So larger transfers may be filling up heap and failing. If you are not interested in the response payload, you can discard it as it arrives by specifying an ondata callback and just dumping the data. See if that works.
Appreciate the reply, Bob. I've done as you suggested and it's taken care of my issue. Thanks.
When working with a debug version of a Django website, I noted that with a large document (this one was ~136k) the system will crash, I assume based on an overflow:
The function where it was rasied was:
With debug turned on, I can see it receiving the lines till it eventually crashes.
Is there any way to maybe add a flag to "ignore body?"