ZeroMQ 消息大小长度限制? [英] ZeroMQ Message Size Length Limit?

查看:38
本文介绍了ZeroMQ 消息大小长度限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设多台机器使用 python 的 zeroMQ 客户端进行交互.

Suppose that several machines are interacting together using python's zeroMQ client.

这些消息自然地格式化为字符串.

These messages are naturally formatted as strings.

消息(字符串)的长度有限制吗?

Is there a limit to the length of a message (string)?

推荐答案

发送的消息大小没有限制,但是小消息的处理方式与大消息不同(请参阅 这里).

There is no limit to the size of messages being sent however small messages are handled differently than large messages (see here).

小消息的最大大小在源代码中定义为 30 字节(参见 此处,查找 ZMQ_MAX_VSM_SIZE).

The max size of a small messages is defined in the source code at 30 bytes (see here, look for ZMQ_MAX_VSM_SIZE).

这篇关于ZeroMQ 消息大小长度限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆