On Tue, 2015-12-15 at 18:43 +0100, Willy Tarreau wrote: > Ah ? but what does it bring in this case ? I'm not seeing it used > anywhere on a listening socket. The code took care of not breaking > them though (ie they still accept if no other socket shows up with > a higher score). Otherwise we'll have to switch to Tolga's patch, > unless we find another socket option that can safely be combined > and which makes sense (I often find it better not to make userland > depend on new updates of includes when possible).
Socket options set on the listener before the accept() are inherited. Applications wanting SO_LINGER special settings on all their sockets can use a single system call right before listen(). Some servers having to deal with TIME_WAIT proliferation very often use SO_LINGER with timeout 0 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html