[PATCH] Core: stop trying to get TCP_DEFER_ACCEPT from unix sockets.

Piotr Sikora piotr at cloudflare.com
Fri Oct 25 22:57:24 UTC 2013


Hey Maxim,

> Any specific reason to?  It doesn't seems to fail / produce any
> problems, and may even start working eventually.

On the contrary, the call used to succeed (tested with Linux 3.2),
but recently started failing (tested with Linux 3.9), which results
in errors produced during binary upgrade:

[notice] 1#0: getsockopt(TCP_DEFER_ACCEPT) for unix:/tmp/test.sock
failed, ignored (95: Operation not supported)

Also, because it's getsockopt() on IPPROTO_TCP level,
I doubt that it will ever start working with unix sockets.

Best regards,
Piotr Sikora



More information about the nginx-devel mailing list