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

Piotr Sikora piotr at cloudflare.com
Mon Oct 28 21:16:48 UTC 2013

Hey Maxim,

> Ok, fair enough.  Wouldn't something like this be better then
> (untested)?

It would, originally I had pretty much the same patch, but for some
reason I thought you'd like the one I send better.

Tested and works fine.

> --- a/src/os/unix/ngx_errno.h
> +++ b/src/os/unix/ngx_errno.h
> @@ -51,6 +51,7 @@ typedef int               ngx_err_t;
>  #define NGX_ENOMOREFILES  0
>  #define NGX_ELOOP         ELOOP
>  #define NGX_EBADF         EBADF

Just a nitpick, but I believe that NGX_EOPNOTSUPP should be added
between NGX_EINPROGRESS & NGX_EADDRINUSE, to keep the order the same
as in system's errno.h.

Best regards,
Piotr Sikora

More information about the nginx-devel mailing list