[PATCH] Core: stop trying to get TCP_DEFER_ACCEPT from unix sockets.
mdounin at mdounin.ru
Thu Oct 31 00:04:48 UTC 2013
On Mon, Oct 28, 2013 at 02:16:48PM -0700, Piotr Sikora wrote:
> 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
> > +#define NGX_EOPNOTSUPP EOPNOTSUPP
> 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.
Sure, fixed (and added win32 define for completeness). Committed,
More information about the nginx-devel