mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
MINOR: stconn: Remove unecessary test on SE_FL_EOS before receiving data
In sc_conn_recv(), if the EOS is reported by the endpoint, it will always be acknowledged by the SC and a read0 will be performed on the input channel. Thus there is no reason to still test at the begining of the function because there is already a test on CF_SHUTR.
This commit is contained in:
parent
28975e1e10
commit
9bce9724ec
1 changed files with 0 additions and 4 deletions
|
|
@ -1196,10 +1196,6 @@ static int sc_conn_recv(struct stconn *sc)
|
|||
if (!conn->mux)
|
||||
return 0;
|
||||
|
||||
/* stop here if we reached the end of data */
|
||||
if (sc_ep_test(sc, SE_FL_EOS))
|
||||
goto end_recv;
|
||||
|
||||
/* stop immediately on errors. Note that we DON'T want to stop on
|
||||
* POLL_ERR, as the poller might report a write error while there
|
||||
* are still data available in the recv buffer. This typically
|
||||
|
|
|
|||
Loading…
Reference in a new issue