mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-07 07:42:49 -04: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
1 changed files with 1 additions and 1 deletions
2
src/fd.c
2
src/fd.c
|
|
@ -42,7 +42,7 @@ void fd_delete(int fd)
|
|||
fdinfo[fd].port_range = NULL;
|
||||
close(fd);
|
||||
fdtab[fd].owner = NULL;
|
||||
fdtab[fd].updated = fdtab[fd].new = 0;
|
||||
fdtab[fd].new = 0;
|
||||
|
||||
while ((maxfd-1 >= 0) && !fdtab[maxfd-1].owner)
|
||||
maxfd--;
|
||||
|
|
|
|||
Loading…
Reference in a new issue