This bug was introduced by the code to make the backend able to safely release the base lock while calling select().
Also, we change win32select.c to the same 32-fds-to-start default as the rest of the backends, so that the main/many_events test can test it. It was at 64-to-start, so the test wasn't hitting it.
svn:r1513
return (0);
}
-#define NEVENT 64
+#define NEVENT 32
void *
win32_init(struct event_base *_base)
{
SOCKET s;
if (win32op->resize_out_sets) {
- size_t size = win32op->fd_setsz;
+ size_t size = FD_SET_ALLOC_SIZE(win32op->fd_setsz);
if (!(win32op->readset_out = mm_realloc(win32op->readset_out, size)))
return (-1);
if (!(win32op->exset_out = mm_realloc(win32op->exset_out, size)))