surf icon indicating copy to clipboard operation
surf copied to clipboard

Turn on TCP NO_DELAY by default?

Open Fishrock123 opened this issue 4 years ago • 3 comments

@ericsampson mentioned to me that a lot of http clients turn this on by default.

Some ecosystem stats:

Fishrock123 avatar Aug 24 '21 18:08 Fishrock123

Oh interesting; I vaguely remember TCP_NODELAY existing so that responses don't arrive from the future. But this may mostly be relevant for HTTP servers, less so for clients. The fact that most other clients do this makes it seem like we could probably too!

yoshuawuyts avatar Aug 26 '21 08:08 yoshuawuyts

Yeah, my experience is from .NET and Java, both of which made this the default value for their HTTP client years ago for perf reasons.

Thanks!!

ericsampson avatar Aug 27 '21 12:08 ericsampson

I'd support this change :)

Firstyear avatar Sep 14 '21 05:09 Firstyear