From: Willy Tarreau Date: Mon, 3 Jun 2019 12:23:33 +0000 (+0200) Subject: CLEANUP: connection: remove the now unused CS_FL_REOS flag X-Git-Tag: v2.0-dev6~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7bb39d7cd6a6491d47255b5b3a0eb8432bfce9f7;p=thirdparty%2Fhaproxy.git CLEANUP: connection: remove the now unused CS_FL_REOS flag Let's remove it before it gets uesd again. It was mostly replaced with CS_FL_EOI and by mux-specific states or flags. --- diff --git a/contrib/debug/flags.c b/contrib/debug/flags.c index 986f8cfe26..dc2a5b7741 100644 --- a/contrib/debug/flags.c +++ b/contrib/debug/flags.c @@ -160,7 +160,6 @@ void show_cs_flags(unsigned int f) SHOW_FLAG(f, CS_FL_NOT_FIRST); SHOW_FLAG(f, CS_FL_WAIT_FOR_HS); SHOW_FLAG(f, CS_FL_EOI); - SHOW_FLAG(f, CS_FL_REOS); SHOW_FLAG(f, CS_FL_EOS); SHOW_FLAG(f, CS_FL_ERR_PENDING); SHOW_FLAG(f, CS_FL_WANT_ROOM); diff --git a/include/proto/connection.h b/include/proto/connection.h index 915be87bf2..3e4a1ef724 100644 --- a/include/proto/connection.h +++ b/include/proto/connection.h @@ -513,7 +513,7 @@ static inline void cs_set_error(struct conn_stream *cs) if (cs->flags & CS_FL_EOS) cs->flags |= CS_FL_ERROR; else - cs->flags |= CS_FL_REOS | CS_FL_ERR_PENDING; + cs->flags |= CS_FL_ERR_PENDING; } /* detect sock->data read0 transition */ diff --git a/include/types/connection.h b/include/types/connection.h index 49ec6d54b8..7e253e0a86 100644 --- a/include/types/connection.h +++ b/include/types/connection.h @@ -93,7 +93,7 @@ enum { CS_FL_WANT_ROOM = 0x00000400, /* More bytes to transfert, but not enough room */ CS_FL_ERR_PENDING = 0x00000800, /* An error is pending, but there's still data to be read */ CS_FL_EOS = 0x00001000, /* End of stream delivered to data layer */ - CS_FL_REOS = 0x00002000, /* End of stream received (buffer not empty) */ + /* unused: 0x00002000 */ CS_FL_EOI = 0x00004000, /* end-of-input reached */ /* unused: 0x00008000 */ CS_FL_WAIT_FOR_HS = 0x00010000, /* This stream is waiting for handhskae */ diff --git a/src/backend.c b/src/backend.c index 28ed993a2e..a9e20e0782 100644 --- a/src/backend.c +++ b/src/backend.c @@ -1230,7 +1230,7 @@ int connect_server(struct stream *s) if (!srv_conn->target || srv_conn->target == s->target) { srv_conn->flags &= ~(CO_FL_ERROR | CO_FL_SOCK_RD_SH | CO_FL_SOCK_WR_SH); if (srv_cs) - srv_cs->flags &= ~(CS_FL_ERROR | CS_FL_EOS | CS_FL_REOS); + srv_cs->flags &= ~(CS_FL_ERROR | CS_FL_EOS); reuse = 1; old_conn = srv_conn; } else {