Welcome! Log In Create A New Profile

Advanced

Multiple listen() call in Nginx server

Posted by Ashique 
Multiple listen() call in Nginx server
January 18, 2019 10:59AM
Hi,

While running Nginx server, even if I enabled only one port (443), listen() API is calling two times. Why it is so? Only one listen() call is required ?

Thanks in advance
Re: Multiple listen() call in Nginx server
January 20, 2019 11:25PM
Hi,

A gentle reminder.



Edited 1 time(s). Last edit at 01/20/2019 11:25PM by Ashique.
Re: Multiple listen() call in Nginx server
January 20, 2019 11:41PM
Hi,

I would like to add some more points for the clarification of my doubt.

I am using nginx 1.11.10.
Openssl 1.1.0h

After creating socket, binding it to the port and listening, in the function "ngx_open_listening_sockets(cycle)", the listen() function is again calling in the function "ngx_configure_listening_sockets(cycle)". What is the need of the second listen() function call ?

Thanks in advance

With regards,
Ashique CK
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 283
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