mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04:00
MINOR: connection: ensure conn_ctrl_close() also resets the fd
The connection's fd was reset to DEAD_FD_MAGIC on conn_force_close() but not on conn_full_close(), which is a bit strange. Let's do it on both.
This commit is contained in:
parent
f9ce57e86c
commit
6a0a80adaf
1 changed files with 1 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ static inline void conn_ctrl_close(struct connection *conn)
|
|||
{
|
||||
if ((conn->flags & (CO_FL_XPRT_READY|CO_FL_CTRL_READY)) == CO_FL_CTRL_READY) {
|
||||
fd_delete(conn->handle.fd);
|
||||
conn->handle.fd = DEAD_FD_MAGIC;
|
||||
conn->flags &= ~CO_FL_CTRL_READY;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue