From a5f86ee07e401d0191b338c4de440c2665d499e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Thu, 7 Nov 2024 12:13:08 +0100 Subject: [PATCH] Raise the amount of file handles on Windows --- drivers/windows/file_access_windows.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp index a8a2ea6b5e..fa23e69f42 100644 --- a/drivers/windows/file_access_windows.cpp +++ b/drivers/windows/file_access_windows.cpp @@ -525,6 +525,9 @@ void FileAccessWindows::initialize() { invalid_files.insert(reserved_files[reserved_file_index]); reserved_file_index++; } + + _setmaxstdio(8192); + print_verbose(vformat("Maximum number of file handles: %d", _getmaxstdio())); } void FileAccessWindows::finalize() {