[Time] Name | Message |
[08:04] zsd
|
I compile the example in visual statio 2010 to publish messages, but the receiver alwayw lost message
|
[08:07] zsd
|
if Sleep(1) after each sending , it will be OK
|
[08:18] sustrik
|
depends on your messaging pattern
|
[08:21] zsd
|
thank you ! void *context = zmq_init(1);void *publisher = zmq_socket (context, ZMQ_PUB);zmq_bind (publisher, "tcp://*:5557");
|
[08:22] sustrik
|
HWM?
|
[08:23] zsd
|
sprintf (update, "%05d %02d %01d %08d", zipcode, temperature, relhumidity, i);
|
[08:23] zsd
|
rc = zmq_msg_init_data (&msg, update, strlen(update), NULL, NULL);
|
[08:23] sustrik
|
ah, and the messages that you publish when the subscribers are not connected are dropped
|
[08:24] zsd
|
no , the publis wait 5 seconds for the sebscribers to setup
|
[08:24] sustrik
|
do you set HWM?
|
[08:25] zsd
|
in publisher?
|
[08:25] sustrik
|
either side
|
[08:26] zsd
|
I only tried on the subscriber, it doesn't work
|
[08:27] sustrik
|
fill in a bug report then
|
[08:28] sustrik
|
attach a minimal test case to it
|
[08:30] zsd
|
thank you
|
[09:55] CIA-31
|
libzmq: 03Martin Sustrik 07bidi-pipes * r3935258 10/ (src/mtrie.cpp src/mtrie.hpp): Minor code beautification for mtrie_t ...
|
[13:38] bharatm
|
Hi
|
[16:43] mikko
|
hey
|
[17:11] sustrik
|
ki
|
[17:11] sustrik
|
hi
|
[17:14] Toba
|
hi
|
[17:14] Toba
|
hi
|
[17:14] Toba
|
hi
|
[17:26] blk
|
how to debug segfault in zmq::socket_base_t::send ?
|
[17:36] taotetek
|
pieter_hintjens: around?
|
[17:42] mikko
|
blk: gdb
|
[17:42] mikko
|
blk: i would check the message being sent first
|
[17:46] blk
|
mikko: thanks, its definitely a problem on my end
|
[17:47] blk
|
gdb just gives me no hint :p
|
[17:48] mikko
|
no symbols?
|
[17:48] mikko
|
can you isolate the part that causes the segfault?
|
[17:50] blk
|
yes, but no worries, I switched from init_data to memcpy and now segfault shows up in memcpy
|
[17:50] blk
|
I'll find it
|
[17:50] blk
|
thanks
|
[17:57] jond
|
blk: memcpy can segfault if the regions overlap
|
[17:59] blk
|
jond: thanks for the help
|
[17:59] blk
|
I just found the bug
|
[17:59] blk
|
very stupid :p
|
[19:52] brianthelion
|
So I am running against out-of-the-box libzmq on Ubuntu Natty
|
[19:52] brianthelion
|
and am getting !pgm_supported () (zmq.cpp:240)
|
[19:52] brianthelion
|
Thoughts?
|
[19:52] brianthelion
|
build from source?
|