commit | 1bdb598a55fe5e0bd209459754c60008bd95f7a9 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Nov 07 14:59:45 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sun Nov 11 10:18:37 2018 +0100 |
tree | aa5bb1dcc6a736eb5440a47aa2cfd7c6d667ca1d | |
parent | 96aadd5c552e26e90453a8caa636d00afc777828 [diff] |
MINOR: stream-int: factor the SI_ST_EST state test into si_chk_rcv() This test is made in each implementation of the function, better to merge it.
diff --git a/include/proto/stream_interface.h b/include/proto/stream_interface.h index a687b2a..1a70536 100644 --- a/include/proto/stream_interface.h +++ b/include/proto/stream_interface.h
@@ -396,6 +396,9 @@ if (!(si->flags & SI_FL_WANT_PUT)) return; + if (si->state > SI_ST_EST) + return; + si->ops->chk_rcv(si); }