Motivation
Due to some applications using the old select API, our current implementation follows the standard of WASI which means we will have a map to handle the randomly generated fd number (<= 2**31) to the actual fd number. However, in some cases, the application only accepts the fd number which is less than FD_SETSIZE (usually 1024).
It would be nice to have an API to set the range of the randomly generated fd numbers.
Details
Appendix
Motivation
Due to some applications using the old select API, our current implementation follows the standard of WASI which means we will have a map to handle the randomly generated fd number (
<= 2**31) to the actual fd number. However, in some cases, the application only accepts the fd number which is less thanFD_SETSIZE (usually 1024).It would be nice to have an API to set the range of the randomly generated fd numbers.
Details
Appendix