Commit 3d66cc3
committed
src: raise the maximum open files limit on Windows
On Windows, libuv uses the CRT's _open_osfhandle when opening files.
This is constrained by the CRT's maxstdio limit, which defaults to 512,
often causing "EMFILE: too many open files" errors for heavy workloads.
This commit raises this limit on Windows up to the CRT maximum (8192)
by invoking _setmaxstdio during PlatformInit, mirroring the POSIX
behavior.
Fixes: #44832
Signed-off-by: 郑苏波 (Super Zheng) <superzheng@tencent.com>1 parent dbec31c commit 3d66cc3
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
641 | 658 | | |
642 | 659 | | |
643 | 660 | | |
| |||
0 commit comments