Revert "MEDIUM: sink: don't set NOLINGER flag on the outgoing stream interface"
authorWilly Tarreau <w@1wt.eu>
Mon, 29 Jul 2024 14:30:42 +0000 (16:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Jul 2024 14:30:42 +0000 (16:30 +0200)
This reverts commit 514a3110f0cb33a04fa5bd786927ad98aebfe72b.

This one was backported by mistake, it wasn't meant to. It should not
harm anyway but better not backport stuff that doesn't need to.

Signed-off-by: Willy Tarreau <w@1wt.eu>

src/sink.c

index b833568..1a9165e 100644 (file)
@@ -505,7 +505,7 @@ static int sink_forward_session_init(struct appctx *appctx)
 
        s = appctx_strm(appctx);
        s->scb->dst = addr;
-       s->scb->flags |= (SC_FL_RCV_ONCE);
+       s->scb->flags |= (SC_FL_RCV_ONCE|SC_FL_NOLINGER);
 
        s->target = &sft->srv->obj_type;
        s->flags = SF_ASSIGNED;