ZeroMQ PUB socket buffers all my out going data when it is connecting

前端 未结 6 1765
栀梦
栀梦 2021-02-02 00:00

I noticed that a zeromq PUB socket will buffers all outgoing data if it is connecting, for example

import zmq
import time
context = zmq.Context()

# create a PUB         


        
6条回答
  •  南旧
    南旧 (楼主)
    2021-02-02 00:51

    You should be able to set a high water mark in the socket using the hwm settingom the pub socket. It lets you define how many messages are kept.

提交回复
热议问题