athttp memory leak if NFILES < MAXSOCKETS
Tad
ecos_removethispart@ds3switch.com
Tue Jun 12 10:38:00 GMT 2007
athttpd\current\include:http.h needs
-- socket_entry sockets[CYGNUM_FILEIO_NFILE];
++ socket_entry sockets[CYGPKG_NET_MAXSOCKETS];
and
athttpd\current\src:socket.c needs
-- for (i = 0; i < CYGNUM_FILEIO_NFILE; i++)
++ for (i = 0; i < CYGPKG_NET_MAXSOCKETS; i++)
{
httpstate.sockets[i].descriptor = 0;
httpstate.sockets[i].timestamp = (time_t)0;
}
because the rest of socket.c indexes sockets[] up to MAXSOCKETS.
More information about the Ecos-patches
mailing list