Open KrishnaPG opened 8 years ago
@KrishnaPG I personally didn't test zebra on windows. But it seems like something went wrong in the broker. Did you use the msvc build files for windows?
It looks like the state-machine is going awry. Somehow the objects are entering the 'disconnected' or 'expired' state even before the proper signals are reached on the other side (whoever the listener).
Sync is missing between the client / server / broker etc. Do you happen to have the exact flow or some sequence diag what is supposed to happen after what? It could help debug the issue.
Also, I see some debug log statements throughout the code - what is the right way to see those debug output? any good tool ?
Hmm... that's weird. The selftests and the example are using inproc protocol to communicate not sure if that works on windows. The protocol between broker and clients is defined here https://github.com/zeromq/zebra/blob/master/src/xrap_traffic.bnf. You can enable the debug statements by sending the string VERBOSE to the broker or the clients.
Am 29.08.2016 07:31 schrieb "Gopalakrishna Palem" <notifications@github.com
:
It looks like the state-machine is going awry. Somehow the objects are entering the 'disconnected' or 'expired' state even before the proper signals are reached on the other side (whoever the listener).
Sync is missing between the client / server / broker etc. Do you happen to have the exact flow or some sequence diag what is supposed to happen after what? Also, I see some debug log statements throughout the code - what is the right way to see those debug output? any good tool ?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zeromq/zebra/issues/36#issuecomment-243035301, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeGuuwE2x5Z0DCkBc_d7uTsTDnYeQhTks5qkm6fgaJpZM4Ju4l2 .
Inproc is just a custom in memory queue so it should work in Windows too, we have tests in libzmq
inproc is working fine. It is the thread sync that is going wrong somewhere.
The
hello.c
example when run on windows, is "freezing" with below call stack:The main thread is halted at
zeb_client_set_handler
:while a worker thread is frozen on
s_accept_reply
insidezeb_client_request
:What exactly is the flow and how to resolve this?