4 ms·
Good introduction to nginx. However, the guide states: "Keep in mind that the maximum number of clients is also limited by the number of socket connections avai
by l_perrin 13y ago
Good introduction to nginx. However, the guide states: "Keep in mind that the maximum number of clients is also limited by the number of socket connections available on your sytem (~64k)".
This is incorrect. The system can open ~64k connections per [src ip, dst ip] pair. In the case of a webserver listening on just 1 port, it means you can open 64k connections per remote IP, which is why some people can write about how they handle a million connections on a single server.
- lampington 13y agoThat's true for incoming connections, but if you're proxying back to something else then the limit does apply to the outgoing ones.
- dialtone 13y agoOnly if you don't use HTTP/1.1 on the proxy side. proxy_http_version 1.1; proxy_set_header Connection ""; In the proxy definition.