[zeromq-dev] large numbers of PUSHers?

2013-06-26 Thread David Cheney
First, thanks to Pieter for his overnight response to my first Q ("set socket opts before bind/connect!") on this list, much appreciated. And thanks/grats/props etc to the team who has built ZeroMQ.. I'm new to the space but been round long enough to know when to be impressed. That said, I want to

[zeromq-dev] NetMQ: is PUB/SUB filtering done at publisher side?

2013-06-26 Thread Giacomo Tesio
Hello everybody, I'm working to my first ZeroMQ based real-world application and I have a few questions: 1) I'm working on .NET and I choosed NetMQ instead of CLRZMQ just on the base of github activity. I've noted there are some differences between the two API (for example I had to Subscribe("") i

Re: [zeromq-dev] C examples do not work on my PC, either with ipc or tcp, except ipc with server & client executed in the same console

2013-06-26 Thread Laurent Alebarde
Thanks a lot Steve, good to know that. Le 26/06/2013 20:44, Steven McCoy a écrit : On 26 June 2013 12:20, Laurent Alebarde > wrote: # grep localhost /etc/hosts 127.0.0.1JANUS localhost #::1localhost This is an invalid configuration for many

Re: [zeromq-dev] C examples do not work on my PC, either with ipc or tcp, except ipc with server & client executed in the same console

2013-06-26 Thread Laurent Alebarde
Thanks a lot Mikko, it works now. Happy to have learned something. Cheers, Laurent. Le 26/06/2013 18:55, Mikko Koppanen a écrit : On Wed, Jun 26, 2013 at 9:06 PM, Laurent Alebarde > wrote: console server : $ ./flserver1 ipc://test.ipc & [1] 17822 $

Re: [zeromq-dev] C examples do not work on my PC, either with ipc or tcp, except ipc with server & client executed in the same console

2013-06-26 Thread Steven McCoy
On 26 June 2013 12:20, Laurent Alebarde wrote: > # grep localhost /etc/hosts > 127.0.0.1JANUS localhost > #::1localhost > This is an invalid configuration for many pieces of software as 127.0.0.1 reverse-resolves to JANUS not localhost, this is why Debian/Ubuntu and others use 127.0

Re: [zeromq-dev] Using PHP 5.4

2013-06-26 Thread Mikko Koppanen
On Wed, Jun 26, 2013 at 10:05 PM, James Marcus wrote: > Hi, > So I edited the config line in my spec file to add the php-config: > > %build > %ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64 > %configure --with-pgm --with-php-config=/usr/bin/php-config > %else > %configure > %endif

Re: [zeromq-dev] C examples do not work on my PC, either with ipc or tcp, except ipc with server & client executed in the same console

2013-06-26 Thread Mikko Koppanen
On Wed, Jun 26, 2013 at 9:06 PM, Laurent Alebarde wrote: > > console server : > $ ./flserver1 ipc://test.ipc & > [1] 17822 > $ I: echo service is ready at ipc://test.ipc > ipc://test.ipc is a relative path. If you working directory is not the same then IPC pipe would be created in different direc

[zeromq-dev] compilation errors

2013-06-26 Thread Andrew Azman
Hi, Just wanted to pass on some errors I had when compilinghttp://pastie.org/8082785#405 Thanks, Andrew Azman___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev

[zeromq-dev] installation problem

2013-06-26 Thread panagiotis.zarros
Hi: I am having problem getting correctly installed the zeromq. 1 out of 20 testes fail, the one below: lt-test_last_endpoint: test_last_endpoint.cpp:31: void do_bind_and_verify(void*, const char*): Assertion `rc == 0' failed. /bin/sh: line 5: 5628 Aborted ${dir}$tst FAIL: test

Re: [zeromq-dev] pyzmq poller performance

2013-06-26 Thread Brian Knox
Min - I merged the poll request on my little laptop and gave it a spin. Before your pull request: mps: 28066 mps: 28116 mps: 29745 mps: 28912 mps: 28679 after your pull request: mps: 78138 mps: 78364 mps: 78411 mps: 78065 mps: 78175 Excellent. By the way, just for fun I imported zmq.green inst

Re: [zeromq-dev] C examples do not work on my PC, either with ipc or tcp, except ipc with server & client executed in the same console

2013-06-26 Thread Laurent Alebarde
If I use tcp://127.0.0.1: instead of tcp://localhost:, it works. I don't understand since in my /etc/hosts, localhost is declared : # grep localhost /etc/hosts 127.0.0.1JANUS localhost #::1localhost But it is not annoying, so for me the socket issue is closed. Remains the ip

Re: [zeromq-dev] ZMQ TCP optimization

2013-06-26 Thread Ori Barak
Hi, Thanks for the help Martin, Enclosed are first couple in pcapng format hope it's fine. It looks as if windo size scaling factor is -2 (no window scaling used). I've tried not using the SND\RECVBUF option and also tried setting it with very high value but didn't see any difference. Thanks,

[zeromq-dev] Sending files from client to server using zeromq

2013-06-26 Thread ashwini ramamurthy
Hi, I want to send a xml file from the client to the server using zeromq . I was previously using HTTP PUT. I went through the zeromq discussion list but could not find many discussions on file transfer.My question is :what are the advantages of using zeromq to transfer files? How are large files

Re: [zeromq-dev] C examples do not work on my PC, either with ipc or tcp, except ipc with server & client executed in the same console

2013-06-26 Thread Laurent Alebarde
Last message with Python was a test with ipc. Now with tcp, I get something that may be interesting, but myself, I don't know what to do with it : $ python flserver1.py "tcp://localhost:" & [1] 18561 $ Traceback (most recent call last): File "flserver1.py", line 18, in server.bind(en

Re: [zeromq-dev] C examples do not work on my PC, either with ipc or tcp, except ipc with server & client executed in the same console

2013-06-26 Thread Laurent Alebarde
I have the same results with the Python examples. So the problem does not originate in my C/C++ build chain : OK if client & server are in the same console, fails in two different consoles. Le 26/06/2013 15:06, Laurent Alebarde a écrit : Hi list, I cannot manage to have my code working. It s

[zeromq-dev] Problem compiling Zyre examples

2013-06-26 Thread Renato Samperio
Hi, As a result of our developers meeting at Brussels. I tried to give a shot to Zyre and I have a problem when compiling "examples" from Zyre GitHub. I did the same in an ubuntu Debian GNU/Linux 7.0 and Ubuntu 12.04: 1) Install, compile, run everythin as in script ".travis.yml" from Zyre git.

Re: [zeromq-dev] Using PHP 5.4

2013-06-26 Thread James Marcus
Hi, So I edited the config line in my spec file to add the php-config: %build %ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64 %configure --with-pgm --with-php-config=/usr/bin/php-config %else %configure %endif I see it being called correctly in the config.status, but still no luck

Re: [zeromq-dev] C examples do not work on my PC, either with ipc or tcp, except ipc with server & client executed in the same console

2013-06-26 Thread Laurent Alebarde
Thanks Steven, modified with: BEFORE: iptables -A INPUT -i lo -j ACCEPT AFTER: iptables -I INPUT 1 -s 127.0.0.0/24 -p tcp --dport 80:65535 -j ACCEPT iptables -I INPUT 1 -s 127.0.0.0/24 -p udp --dport 80:65535 -j ACCEPT It changes nothing to the result anyway. Even if I stop completly iptables.

Re: [zeromq-dev] C examples do not work on my PC, either with ipc or tcp, except ipc with server & client executed in the same console

2013-06-26 Thread Steven McCoy
On 26 June 2013 09:06, Laurent Alebarde wrote: > target prot opt source destination > ACCEPT tcp -- 127.0.0.0/24 0.0.0.0/0tcp dpt:80 > That's clearly only destination port 80. ___ zeromq-dev mailing list zero

[zeromq-dev] C examples do not work on my PC, either with ipc or tcp, except ipc with server & client executed in the same console

2013-06-26 Thread Laurent Alebarde
Hi list, I cannot manage to have my code working. It seems that I am sticked in zmq_poll. Even in an infinite while, a printf and a 100 ms time-out, the printf executes only once, so I conclude that in my code, zmq_poll blocks internally. So I have tried the examples - precisely flclient1 al

Re: [zeromq-dev] building examples fails though czmq is standardly installed : undefined reference to `zsocket_new'

2013-06-26 Thread Laurent Alebarde
Under the Eclipse CDT, it works. The only difference I can see is that under the console, I use gcc v. 4.5.4, and under Eclipse gcc v 4.7.1 with c++11 This should not make a difference since paths are the same ? Le 26/06/2013 14:19, Laurent Alebarde a écrit : Hi list, Though czmq is install

[zeromq-dev] building examples fails though czmq is standardly installed : undefined reference to `zsocket_new'

2013-06-26 Thread Laurent Alebarde
Hi list, Though czmq is installed and installed in standard locations, building examples fails. Any idea please ? My CZMQ install : /usr/lib64/pkgconfig/libczmq.pc /usr/lib64/libczmq.so.1.0.0 /usr/share/doc/czmq-1.3.2/AUTHORS.bz2 /usr/share/doc/czmq-1.3.2/NEWS.bz2 /usr

[zeromq-dev] czmq : what about zbeacon_t using a shadow zctxt_t

2013-06-26 Thread Jean-François Smigielski
Dear all, I am currently working on peers discovery for ZeroMQ sockets, and the zbeacon set of features from CZMQ is a real good point for local discovery. It seems the zbeacon feature could easily work with a zctx_t shadowed from an original "main" context used by the remaining of the applicatio

Re: [zeromq-dev] ZMQ TCP optimization

2013-06-26 Thread Martin Hurton
Hi Ori, could you please capture the first 10 packets when you connect to the remote server for me. I would like to check something. Thanks. - mh On Wed, Jun 26, 2013 at 10:05 AM, Ori Barak wrote: > Hi, > > > > I have an application running on windows using ZMQ Push\Pull TCP sockets. > > The cli

Re: [zeromq-dev] Using PHP 5.4

2013-06-26 Thread Mikko Koppanen
On 26 Jun 2013, at 05:30, James Marcus wrote: > the thing is... I need to deploy this to 400 servers. I'll keep > looking. thanks for the suggestion. > During ./configure process check which php-config is picked. ./configure --with-php-config=/path/to/correct/zendapi/php-config should do

[zeromq-dev] ZMQ TCP optimization

2013-06-26 Thread Ori Barak
Hi, I have an application running on windows using ZMQ Push\Pull TCP sockets. The client\server machines I use have a 1 GB bandwidth. When sending messages between 2 close servers (round trip time <1ms) I get a rate of about ~110MB/sec. When sending messages between two remote servers (round tr