Skip to content

Commit b50a471

Browse files
committed
BUG/MEDIUM: stconn: Don't block sends if there is a pending shutdown
For the same reason than the previous patch, we must not block the sends when there is a pending shutdown. In other words, we must consider the sends are allowed when there is a pending shutdown. This patch must slowly be backported as far as 2.2. It should partially fix issue haproxy#2249.
1 parent 0b93ff8 commit b50a471

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/haproxy/sc_strm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ static inline int sc_is_send_allowed(const struct stconn *sc)
351351
{
352352
if (sc->flags & SC_FL_SHUT_DONE)
353353
return 0;
354+
if (sc->flags & SC_FL_SHUT_WANTED)
355+
return 1;
354356

355357
return !sc_ep_test(sc, SE_FL_WAIT_DATA | SE_FL_WONT_CONSUME);
356358
}

0 commit comments

Comments
 (0)