From the doc: http://wiki.nginx.org/ReadMoreAboutTcpNodelay TCP_NODELAY is for a specific purpose; to disable the Nagle buffering algorithm. It should only be set for applications that send frequent small bursts of information without getting an immediate response, where timely delivery of data is required (the canonical example is mouse movements). So my understanding for most web app, it should be disabled so we can use the "Nagle buffering algorithm", only disable when you have special need, like logging mouse movements as in the example? Thanks.
on 2012-11-03 06:02
on 2012-11-03 06:10
On Nov 3, 2012, at 9:02 , howard chen wrote: > From the doc: http://wiki.nginx.org/ReadMoreAboutTcpNodelay > > TCP_NODELAY is for a specific purpose; to disable the Nagle buffering algorithm. It should only be set for applications that send frequent small bursts of information without getting an immediate response, where timely delivery of data is required (the canonical example is mouse movements). > > > > So my understanding for most web app, it should be disabled so we can use the "Nagle buffering algorithm", only disable when you have special need, like logging mouse movements as in the example? > http://nginx.org/en/docs/http/ngx_http_core_module... The option is enabled only when a connection is transitioned into the keep-alive state. Otherwise there is 100ms delay when nginx sends response tail in the last incomplete TCP packet.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.