On Wed, 19 Jun 2013, Nikita Dubrovin wrote:
> Hello.
>
> I am trying to implement an application event feed with zmq PUB/SUB sockets
> and XPUB/XSUB broker, to distribute global state updates to web-clients. If
> an event has fired, (e. g. record in database was deleted), it is published
> to PUB socket, then server worker processes receive it and forward to
> clients through websocket.
>
> Looks like I have a problem initializing publish socket: messages sent by
> separate script are received by clients. If I try to create it at
> application startup, hypnotoad runs a single query 'GET /' (when i refresh
> page) and crashes:
>
> -> % hypnotoad -f script/web_socket_simple
> Server available at
http://127.0.0.1:8080.
> Assertion failed: ok (mailbox.cpp:79)
> [2] 8095 abort (core dumped) hypnotoad -f script/web_socket_simple
Looks to be a concurrency problem with zeromq. Doesn't look like a problem