Hacker News new | past | comments | ask | show | jobs | submit login

0.5MB of buffer contributes a lot to latency when your link is slow.

Assuming a 1Mbit link, it takes 4 seconds of latency to send the default SO_SENDBUF.




True. But if you have 0.5MB data to send right now, it will take that long regardless of whether it is queued in the socket buffer or your application. Applications that need to care about this are typically not sitting on top of TCP, and would usually need to control the send buffer size anyway.


If you have 0.5MB data to send right now, you could queue it all in your application layer, then you could still decide to cancel it or schedule your sends based on your own priorities.

I agree that applications that care about this don't use TCP, but one of the primary reasons for this is exactly this problem: that you don't get to send at the edge of the TCP window. There are other reasons, of course, each of which is fixable (and should be fixed!)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: