We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the first example the following handler generates a memory leak:
server->on("/upload", HTTP_POST, [](AsyncWebServerRequest *request) { request->send(200); }, handleUpload);
it should be written as
server->on("/upload", HTTP_POST, [](AsyncWebServerRequest *request) { }, handleUpload);
Handling the response in the handleUpload function.
Otherwise request->send() clear the request while is still in use in the handleUpload() and then heap is never recovered....
The text was updated successfully, but these errors were encountered:
@romoloman are you able to raise a PR with your proposed fix please, it would be nice to include it in
Sorry, something went wrong.
No branches or pull requests
In the first example the following handler generates a memory leak:
server->on("/upload", HTTP_POST, [](AsyncWebServerRequest *request) {
request->send(200);
}, handleUpload);
it should be written as
server->on("/upload", HTTP_POST, [](AsyncWebServerRequest *request) {
}, handleUpload);
Handling the response in the handleUpload function.
Otherwise request->send() clear the request while is still in use in the handleUpload() and then heap is never recovered....
The text was updated successfully, but these errors were encountered: