From 9cdd5036f356c3ce36269689915ad43cb23b2bd9 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 14 May 2019 22:46:41 +0200 Subject: [PATCH] MINOR: stream-int: Don't use the flag CO_RFL_KEEP_RSV anymore in si_cs_recv() Because the channel_recv_max() always return the right value, for HTX and legacy streams, we don't need to set this flag. The multiplexer don't use it anymore. --- src/stream_interface.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/stream_interface.c b/src/stream_interface.c index b12d50bc3..3a3824c67 100644 --- a/src/stream_interface.c +++ b/src/stream_interface.c @@ -1281,10 +1281,7 @@ int si_cs_recv(struct conn_stream *cs) * CS_FL_RCV_MORE on the CS if more space is needed. */ max = channel_recv_max(ic); - ret = cs->conn->mux->rcv_buf(cs, &ic->buf, max, - flags | - (co_data(ic) ? CO_RFL_BUF_WET : 0) | - ((channel_recv_limit(ic) < b_size(&ic->buf)) ? CO_RFL_KEEP_RSV : 0)); + ret = cs->conn->mux->rcv_buf(cs, &ic->buf, max, flags | (co_data(ic) ? CO_RFL_BUF_WET : 0)); if (cs->flags & CS_FL_WANT_ROOM) si_rx_room_blk(si);