mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-24 06:22:44 +00:00
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:
parent
3203ff4617
commit
1720abd727
2
src/fd.c
2
src/fd.c
@ -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--;
|
||||||
|
Loading…
Reference in New Issue
Block a user