zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.46k stars 2.34k forks source link

Limiting socket speed for debugging purposes #4601

Open vlad-mal opened 9 months ago

vlad-mal commented 9 months ago

Please use this template for reporting suspected bugs or requests for help.

Issue description

Hello. It so happens that my ZMQ-based system works with clients connected via channels (tcp) with very different data transfer rates.    All this needs to be somehow configured and debugged. Question: Is it possible to set a limit on the data transfer rate in the channel when creating a client socket? Or some other way to imitate a slow channel? Thank you.

Environment

The server uses the ROUTER socket, the client uses the DIALER sockets if that's important. C/C++ (MSVS 2023).

Regards, Malinosky Vladimir