Buffering characteristics of Unix Sockets

我只是一个虾纸丫 提交于 2019-11-29 23:10:49

问题


Does anyone know the buffering characteristics of Unix sockets when sending small chunks of data(a few bytes)?, when using TCP sockets I can disable the Nagle algorithm to prevent latency in data transit but there's no equivalent functionality (that I know of) for Unix Domain sockets.

Thanks.


回答1:


There is no nagle algorithm available on unix domain sockets.

Unix sockets are normally implemented as a memory buffer in the operating system kernel. Once you've written/sent data on the socket, it is copied into that buffer, and becomes immediately available to the peer.



来源:https://stackoverflow.com/questions/12010033/buffering-characteristics-of-unix-sockets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!