Welcome! Log In Create A New Profile

Advanced

Re: Windows 1024 Connections Limit

Maxim Dounin
April 12, 2017 08:58AM
Hello!

On Tue, Apr 11, 2017 at 09:37:46PM -0700, Igal @ Lucee.org wrote:

> Is there a technical reason for the 1,024 Connections Limit on Windows?
>
> http://nginx.org/en/docs/windows.html#known_issues
>
> Surely the OS can handle many more connections than that.

On Windows, nginx uses select() system call to handle connection
events. This syscall implies fixed-size bitmasks to pass file
descriptors from userland to kernel and back. Size of these
bitmasks can be only specified during compilation, and 1024 is the
value nginx uses for official binaries to balance between maximum
number of connections and unneeded overhead implied by large
bitmasks.

> This is not much of an issue with regular requests, but when you use
> WebSockets you can run out of connections very fast.

It is possible to recompile nginx with different value if you need
to, see http://nginx.org/en/docs/howto_build_on_win32.html.

On ther other hand, if you are using nginx in production I would
recommend to consider using Unix variants instead.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Windows 1024 Connections Limit

Igal @ Lucee.org April 12, 2017 12:40AM

Re: Windows 1024 Connections Limit

Maxim Dounin April 12, 2017 08:58AM

Re: Windows 1024 Connections Limit

Igal @ Lucee.org April 12, 2017 01:44PM

Re: Windows 1024 Connections Limit

B.R. via nginx April 13, 2017 03:56AM

Re: Windows 1024 Connections Limit

oscaretu . April 13, 2017 04:10AM

Re: Windows 1024 Connections Limit

Igal @ Lucee.org April 13, 2017 10:02AM

Re: Windows 1024 Connections Limit

Maxim Dounin April 13, 2017 10:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready