| 1 | module picoev |
| 2 | |
| 3 | // max_fds is the maximum number of file descriptors that can be managed. |
| 4 | // Many sizes depend on it, and some internal arrays are also iterated based on it, |
| 5 | // so increasing it a lot can slow down looping :-| . |
| 6 | // It is higher on windows, because if you start a veb/picoev webservice in a thread, |
| 7 | // the returned file descriptors can be higher than 1024 in value, especially if you |
| 8 | // also have a webview running in another thread, that also opens its own file descriptors. |
| 9 | // Note: this works, because on windows we use select, and select on win32, |
| 10 | // is not limited to polling on only 1024 fds. |
| 11 | pub const max_fds = 4096 |
| 12 | |