mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 07:07:04 +02:00
BUG/MINOR: stconn: Don't inhibit shutdown on connection on error
In the SC function responsible to perform shutdown, there is a statement inhibiting the shutdown if an error was encountered on the SC. This statement is inherited from very old version and should in fact be removed. The error may be set from the stream. In this case the shutdown must be performed. In all cases, it is not a big deal if the shutdown is performed twice because underlying functions already handle multiple calls. This patch does not fix any bug. Thus there is no reason to backport it.
This commit is contained in:
parent
fb4294be55
commit
015fec6a29
@ -715,11 +715,7 @@ static void sc_app_shut_conn(struct stconn *sc)
|
||||
* However, if SC_FL_NOLINGER is explicitly set, we know there is
|
||||
* no risk so we close both sides immediately.
|
||||
*/
|
||||
|
||||
if (sc->flags & SC_FL_ERROR) {
|
||||
/* quick close, the socket is already shut anyway */
|
||||
}
|
||||
else if (sc->flags & SC_FL_NOLINGER) {
|
||||
if (sc->flags & SC_FL_NOLINGER) {
|
||||
/* unclean data-layer shutdown, typically an aborted request
|
||||
* or a forwarded shutdown from a client to a server due to
|
||||
* option abortonclose. No need for the TLS layer to try to
|
||||
|
Loading…
Reference in New Issue
Block a user