3 ms·
> When I read that multiple processes can use the port it finally made sense to me how nginx is able to spawn so many workers. It’s the socket descriptor that
by arkj 5y ago
> When I read that multiple processes can use the port it finally made sense to me how nginx is able to spawn so many workers.
It’s the socket descriptor that matters. When the listen call unblocks and the thread accepts the connection it gets a new socket descriptor, it’s through this socket the subsequent read/write happens for the connection.