Unix套接字的缓冲特性 [英] Buffering characteristics of Unix Sockets
问题描述
有谁知道Unix套接字的缓冲特性发送小数据块时(几个字节)+使用TCP套接字时,我可以禁用Nagle算法在数据中转prevent延迟,但没有相应的功能(我所知道的)的Unix领域套接字。
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.
感谢。
推荐答案
有在UNIX域套接字没有可用的Nagle算法。
There is no nagle algorithm available on unix domain sockets.
Unix套接字如在操作系统内核存储器缓冲器正常实施。一旦你已经写/发送的插座上的数据,它被复制到缓冲区,并立即成为提供给对方。
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.
这篇关于Unix套接字的缓冲特性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!