https://github.com/cesanta/mongoose/issues/607
Bug ID: 607
In function open_cgi_endpoint, if there is no sock left( such as on linux, you create 1024 fd and reach max limit), follow while will loop forever.
do {
ns_socketpair(fds);
} while (fds[0] == INVALID_SOCKET);