MEDIUM: fd: don't unset fdtab[].updated upon delete

We must not remove the .updated flag otherwise we risk having to
reallocate a new updt entry if the same fd is reused.
This commit is contained in:
Willy Tarreau 2012-11-11 17:08:32 +01:00
parent 3203ff4617
commit 1720abd727

View File

@ -42,7 +42,7 @@ void fd_delete(int fd)
fdinfo[fd].port_range = NULL; fdinfo[fd].port_range = NULL;
close(fd); close(fd);
fdtab[fd].owner = NULL; fdtab[fd].owner = NULL;
fdtab[fd].updated = fdtab[fd].new = 0; fdtab[fd].new = 0;
while ((maxfd-1 >= 0) && !fdtab[maxfd-1].owner) while ((maxfd-1 >= 0) && !fdtab[maxfd-1].owner)
maxfd--; maxfd--;