REORG/MEDIUM: fd: remove FD_STCLOSE from struct fdtab
In an attempt to get rid of fdtab[].state, and to move the relevant
parts to the connection struct, we remove the FD_STCLOSE state which
can easily be deduced from the <owner> pointer as there is a 1:1 match.
diff --git a/include/types/fd.h b/include/types/fd.h
index 0abd3ef..c757345 100644
--- a/include/types/fd.h
+++ b/include/types/fd.h
@@ -32,7 +32,6 @@
#include <types/protocols.h>
/* different possible states for the fd */
-#define FD_STCLOSE 0
#define FD_STLISTEN 1
#define FD_STCONN 2
#define FD_STREADY 3
@@ -70,7 +69,7 @@
struct {
int (*f)(int fd); /* read/write function */
} cb[DIR_SIZE];
- void *owner; /* the session (or proxy) associated with this fd */
+ void *owner; /* the session (or proxy) associated with this fd, NULL if closed */
struct { /* used by pollers which support speculative polling */
unsigned char e; /* read and write events status. 4 bits, may be merged into flags' lower bits */
unsigned int s1; /* Position in spec list+1. 0=not in list. */