Note that there are some explanatory texts on larger screens.

plurals
  1. POzeromq: PULL/PUSH client crashes after upon connection of 31. server on windows
    primarykey
    data
    text
    <p>I'm experimenting with the PUSH/PULL pattern for distributed computing in a local network. Up to now everything seemed to work out, however, I had o discover that upon the startup of the 31 worker (server) the client (the ventilator and the collector) application crashes.</p> <p>Is there a limit for the connections to a certain port on windows (on MacOs X this seems not to be the case). I'm using tcp trans port and ports 5555 and 5556 as in the zeromq example. The behavior is observer for remote and local workers. </p> <p>Thx</p> <p>Update: heres the code (modified sample from the zmq guide)</p> <pre><code>#include &lt;zmq.hpp&gt; #include &lt;stdlib.h&gt; #include &lt;stdio.h&gt; #include &lt;unistd.h&gt; #include &lt;iostream&gt; #include &lt;sstream&gt; int main (int argc, char *argv[]) { zmq::context_t context(1); int number_of_sockets=32; // 32 will crash, 30 will pass zmq::socket_t** receiver=new zmq::socket_t*[number_of_sockets]; zmq::socket_t** sender=new zmq::socket_t*[number_of_sockets]; std::cout&lt;&lt; "go"&lt;&lt;std::endl; for (int i=0;i&lt;number_of_sockets; i++) { receiver[i]=new zmq::socket_t(context, ZMQ_PULL); receiver[i]-&gt;connect("tcp://localhost:5555"); } std::cout&lt;&lt; "ok"&lt;&lt;std::endl; for (int i=0;i&lt;number_of_sockets; i++) { sender[i]=new zmq::socket_t(context, ZMQ_PUSH); sender[i]-&gt;connect("tcp://localhost:5556"); } std::cout &lt;&lt; "done" &lt;&lt;std::endl; return 0; } </code></pre> <p>I build using Mingw-w64-tdm (4.5) by the command: <code>g++ -o worker.exe taskworker.cpp -L/./lib -lzmq -L/./lib/zeromq/libzmq.la -liphlpapi -lrpcrt4 -lws2_32 -lpthread</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload