Skip to content

fix(http): close file before aborting request - #459

Merged
mathieucarbou merged 1 commit into
mainfrom
fix/close
Jul 20, 2026
Merged

mathieucarbou merged 1 commit into
mainfrom
fix/close

Conversation

@mathieucarbou

Copy link
Copy Markdown
Member

No description provided.

Comment thread src/WebHandlers.cpp
if (_tempPath == NULL) {
async_ws_log_e("Failed to allocate");
request->abort();
request->_tempFile.close();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine, but it might not be necessary at all -- the file should be closed when the _tempFile object is destructed.

@mathieucarbou mathieucarbou added Type: Improvement and removed Type: Bug Something isn't working labels Jul 20, 2026
@mathieucarbou
mathieucarbou merged commit c129e09 into main Jul 20, 2026
38 of 39 checks passed
@mathieucarbou
mathieucarbou deleted the fix/close branch July 20, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants