Fixed various SCGI issues.

This commit is contained in:
Jari Sundell
2026-03-10 15:25:28 +01:00
committed by GitHub
parent 7ead88448b
commit 70e6964823
3 changed files with 40 additions and 14 deletions
+3 -5
View File
@@ -43,12 +43,10 @@ SCgiTask::cancel_open() {
if (!is_open())
return;
torrent::runtime::socket_manager()->close_event_or_throw(this, [this]() {
torrent::this_thread::poll()->remove_and_close(this);
torrent::this_thread::poll()->remove_and_close(this);
torrent::fd_close(file_descriptor());
set_file_descriptor(-1);
});
torrent::fd_close(file_descriptor());
set_file_descriptor(-1);
};
void