|
|
|
|
|
by tashbarg
1260 days ago
|
|
It makes perfect sense if you consider the right abstraction. TCP connections are streams. There are no packets on that abstraction level. You’re not supposed to care about packets. You’re not supposed to know how large a packet even is. The default is an efficient stream of bytes that has some trade-off to latency. If you care about latency, then you can set a flag. |
|
The default actually violates the abstraction more because now you care how large a packet is, because somehow writing a smaller amount of data causes your latency to spike for some mysterious reason.