v / vlib / picoev / constants_windows.c.v
11 lines · 10 sloc · 638 bytes · d5aa37d8b770ae0384abb78d4c2590548e4da830
Raw
1module 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.
11pub const max_fds = 4096
12