[zeromq-dev] questions about sub/pub socket

Martin Sustrik sustrik at 250bpm.com
Tue Feb 2 10:15:33 CET 2010


Martin Sustrik wrote:
> Guo, Yanchao wrote:
>> Hi Martin:
>>
>> Actually I want to AVOID the situation that message are cached in the 
>> publisher when the subscriber disconnected. However, with the 
>> PUB/Connect type of socket that I described below, the message is cached 
>> by default when the SUB is disconnected. I am asking is there a way to 
>> make this NOT happen.
> 
> Ok. This shouldn't happen. Let me check it.

Ah. I see. It's PUB socket and you do connect on it. Yes, it that case 
it works that way. Normally the clients (SUBs) do connect and server 
(PUB) is doing bind. Can you be more specific about your use case?

Martin



More information about the zeromq-dev mailing list