mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-12 22:44:32 +00:00
REORG/MEDIUM: fd: get rid of FD_STLISTEN
This state was only used so that ev_sepoll did not match FD_STERROR, which changed in previous patch. We can now safely remove this state.
This commit is contained in:
parent
5d526b7215
commit
ed8f614078
@ -32,7 +32,6 @@
|
||||
#include <types/protocols.h>
|
||||
|
||||
/* different possible states for the fd */
|
||||
#define FD_STLISTEN 1
|
||||
#define FD_STCONN 2
|
||||
#define FD_STREADY 3
|
||||
#define FD_STERROR 4
|
||||
|
@ -818,7 +818,7 @@ int tcp_bind_listener(struct listener *listener, char *errmsg, int errlen)
|
||||
listener->state = LI_LISTEN;
|
||||
|
||||
fdtab[fd].owner = listener; /* reference the listener instead of a task */
|
||||
fdtab[fd].state = FD_STLISTEN;
|
||||
fdtab[fd].state = 0; /* anything will do, but avoid FD_STERROR */
|
||||
fdtab[fd].flags = FD_FL_TCP | ((listener->options & LI_O_NOLINGER) ? FD_FL_TCP_NOLING : 0);
|
||||
fdtab[fd].cb[DIR_RD].f = listener->proto->accept;
|
||||
fdtab[fd].cb[DIR_WR].f = NULL; /* never called */
|
||||
|
@ -265,7 +265,7 @@ static int uxst_bind_listener(struct listener *listener, char *errmsg, int errle
|
||||
fdtab[fd].cb[DIR_RD].f = listener->proto->accept;
|
||||
fdtab[fd].cb[DIR_WR].f = NULL; /* never called */
|
||||
fdtab[fd].owner = listener; /* reference the listener instead of a task */
|
||||
fdtab[fd].state = FD_STLISTEN;
|
||||
fdtab[fd].state = 0; /* anything will do, but avoid FD_STERROR */
|
||||
return ERR_NONE;
|
||||
err_rename:
|
||||
ret = rename(backname, path);
|
||||
|
Loading…
Reference in New Issue
Block a user