Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the deferred option mean in NGINXs listen directive?

Tags:

nginx

I've seen example NGINX configurations with the "deferred" option added to the listen directive

server {    listen 80 default deferred;   ...  } 

I can't work out what it does (and whether or not I should use it) and the documentation doesn't make too much sense to me

deferred -- indicates to use that postponed accept(2) on Linux with the aid of option TCP_DEFER_ACCEPT

Can anyone explain what this option is for?

like image 685
bodacious Avatar asked Dec 09 '11 17:12

bodacious


1 Answers

TCP_DEFER_ACCEPT can help boost performance by reducing the amount of preliminary formalities that happen between the server and client.

You can read more about it HERE.

like image 140
Dayo Avatar answered Sep 23 '22 00:09

Dayo