Pieter,

Unfortunately I can't do that right now. Problem occurred in public 
environment. It is used for demo purposes and there are some testers online. I 
have access to problem client and I can hack it. I can add some traces on 
server side and restart it. But I have to preserve protocol.

Our transport layer (built on ZMQ) uses client public key for identification 
also. I can try to change protocol in testing environment but it will take some 
time.

Right now I am trying to reproduce problem in testing environment. There are 
500 clients and 5 of them are experiencing problems.

Two clients fails to pass Curve Hello stage in process_hello(). It fails with 
-1 on crypto_box_open(). May be this is somehow connected with my problem. 
Curve fails to decrypt incoming messages and drops them for example.

I will try to reproduce problem in my environment and also reproduce it using 
plain (not secure) sockets.

Thank you for your response.

Stepan.

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Pieter Hintjens
Sent: Thursday, April 03, 2014 4:25 PM
To: ZeroMQ development list
Subject: Re: [zeromq-dev] Missing incoming messages on Router

Stepan,

Can you simplify the test case and see if you can find a trigger cause?

E.g. use NULL instead of CURVE for that client?

-Pieter

On Thu, Apr 3, 2014 at 1:08 PM, Stepan Tezyunichev 
<[email protected]> wrote:
> Hi all,
>
>
>
>
>
> I am experiencing problem with message delivery from Dealer (as 
> client) to Router (as server).
>
> Dealer and Router are configured to use Curve.
>
> I am using ZMQ 4.0.3. Server is running on Centos x64. Client is 
> running on Windows 7.
>
>
>
>
>
> Usually everything works OK. But eventually one client fails to 
> deliver any message to server.
>
>
>
>
>
> Client invokes connect() on socket, sleeps for 5 seconds and sends 12 
> identical messages 
> (['Session']['']['StartSession']['7E60B46D-77BC-4E57-A8FC-D81C0C9076CD']).
>
> All incoming messages from Router are written to log file.
>
>
>
>
>
> From server application logs and tcpdump logs I see that ZAP attempt 
> was
> successful:
>
>
>
> 2014-04-03T08:35:56.693Z +0000 Broker backend message:
> ['2']['AUTH']['^@*<E8><94>\']['']['9715451C-BB3F-48EA-88AC-8D5E15E598D
> D']['1.0']['1']['200']['OK']['']['']
>
> 2014-04-03T08:35:56.693Z +0000 Bind 
> 9715451C-BB3F-48EA-88AC-8D5E15E598DD to worker 2
>
>
>
> 08:35:56.578731 IP 10.25.240.109.t2-brm > 10.25.240.17.7780: Flags 
> [P.], seq 65:267, ack 65, win 8204, options [nop,nop,TS val 589638071 
> ecr 491306048], length 202
>
> @...HELLO........................................................
>
> 08:35:56.578749 IP 10.25.240.17.7780 > 10.25.240.109.t2-brm: Flags 
> [.], ack 267, win 122, options [nop,nop,TS val 491306119 ecr 
> 589638071], length 0
>
> .H..#%)....WELCOMEU.....l.G".b...^....T.........m.."...........]
>
> 08:35:56.660713 IP 10.25.240.109.t2-brm > 10.25.240.17.7780: Flags 
> [P.], seq 267:604, ack 235, win 8193, options [nop,nop,TS val 
> 589638152 ecr 491306120], length 337
>
> #%*..H..........H.INITIATE..7A....P......m..W.cm.y,.b..P
>
> 08:35:56.693264 IP 10.25.240.17.7780 > 10.25.240.109.t2-brm: Flags 
> [P.], seq 235:302, ack 604, win 130, options [nop,nop,TS val 491306234 
> ecr 589638152], length 67
>
> .H..#%*..A.READY..........b........d&YF......S..
>
>
>
>
>
> And there are 12 client messages on server wire after 5 seconds:
>
>
>
> 08:36:01.395444 IP 10.25.240.109.t2-brm > 10.25.240.17.7780: Flags 
> [P.], seq 604:874, ack 302, win 8192, options [nop,nop,TS val 
> 589642822 ecr 491306234], length 270
>
> #%<F.H...(.MESSAGE4d277abfQ..@...$...r.TN..M~N.l...!.MESSAGE5d277abf..
> ..5.....*.nw....-.MESSAGE6d277abf.J....p....;[qJ.......BK..q.=.I.MESSA
> GE7d277abfc5.V.L....l
> \....5D..
>
>
>
>
>
> But there are no any messages from client in server application log. 
> Other clients connected to the same router socket continue to work.
>
> Restart of client or server does not help.
>
>
>
>
>
> I am stuck with it. Any help is highly appreciated.
>
>
>
>
>
> Thanks a lot beforehand,
>
> Stepan.
>
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to