3 ms·
One problem I've run into when trying to use Unix sockets though is that it can only buffer fairly few messages at once, so if you have a lot of messages in fli
by LinAGKar 3y ago
One problem I've run into when trying to use Unix sockets though is that it can only buffer fairly few messages at once, so if you have a lot of messages in flight at once you can easily end up with sends failing. TCP sockets can handle a lot more messages.
- count 3y agoCan't you tune this with sysctl?
- LinAGKar 3y agoYou can set net.core.wmem_default, though that's a system-wide setting you have to override. And then you can end up with large message queues instead, if you have a lot of small messages (which is a concern in the embedded systems I work on). The problem is really the large overhead of the messages, of close to a kilobyte per message. TCP sockets have just a fraction of the overhead.