MINOR: fd: move .linger_risk into fdtab[].state
No need to keep this flag apart any more, let's merge it into the global
state. The CLI's output state was extended to 6 digits and the linger/cloned
flags moved inside the parenthesis.
diff --git a/src/sock.c b/src/sock.c
index 19191c8..14b15a3 100644
--- a/src/sock.c
+++ b/src/sock.c
@@ -726,8 +726,8 @@
/* Write error on the file descriptor. Report it to the connection
* and disable polling on this FD.
*/
- fdtab[fd].linger_risk = 0;
conn->flags |= CO_FL_ERROR | CO_FL_SOCK_RD_SH | CO_FL_SOCK_WR_SH;
+ HA_ATOMIC_AND(&fdtab[fd].state, ~FD_LINGER_RISK);
fd_stop_both(fd);
return 0;
@@ -870,7 +870,7 @@
shut:
/* we're certain the connection was shut down */
- fdtab[fd].linger_risk = 0;
+ HA_ATOMIC_AND(&fdtab[fd].state, ~FD_LINGER_RISK);
return 1;
}