diff --git a/src/proto_tcp.c b/src/proto_tcp.c index e5496dc024..ecef63f85b 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -267,7 +267,7 @@ int tcp_connect_server(struct stream_interface *si) setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof(one)); if (be->options & PR_O_TCP_NOLING) - setsockopt(fd, SOL_SOCKET, SO_LINGER, &nolinger, sizeof(struct linger)); + si->flags |= SI_FL_NOLINGER; /* allow specific binding : * - server-specific at first