[zeromq-dev] REQ-REP pattern: client (REQ) started before server (REP) (java binding)
Pieter Hintjens
ph at imatix.com
Tue Oct 5 12:29:15 CEST 2010
Hi Krzysztof,
It's definitely not normal. The tcp transport is 'disconnected' in
that the client will continue to try to connect if it can't find the
server immediately.
Where is client hanging?
-Pieter
On Tue, Oct 5, 2010 at 9:32 AM, Marcinowicz, Krzysztof
<Krzysztof.Marcinowicz at compuware.com> wrote:
> This an excerpt from ØMQ - The Guide:
>
> “For fun, try starting the client and then starting the server, see how it
> all still works, then think for a second what this means.”
>
> And this is my problem. I use Java binding and have this scenario not
> working.
>
> When the server starts first and the then client – it works fine. But the in
> the opposite case the client hangs.
>
> I think it is not expected behavior. Does anybody faced such a problem?
>
>
>
> Server process:
>
> <script src="http://pastebin.com/embed_js.php?i=34Wrz7Hf"></script>
>
> Client process:
>
> <script src="http://pastebin.com/embed_js.php?i=D36Xmd6t"></script>
>
> Server and Client in one process:
>
> <script src="http://pastebin.com/embed_js.php?i=HZZDk57h"></script>
>
> WinXP, latest (synchronized this morning ~9:00 October 5, 2010) zeromq2.git
> and jzmq.git built with Visual C++ 2008 Express Edition
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or disclose
> it to anyone else. If you received it in error please notify us immediately
> and then destroy it.
>
> Compuware sp. z o.o. (registration number KRS 595) is a company registered
> in Poland whose registered office is at Ul. Dmowskiego 12,80-264 Gdansk
> Rejestr handlowy KRS 0000000595 Sadu Rejonowego Gdansk-Polnoc w Gdansku VII
> Wydzial Gospodarczy Kapital zakladowy 1.140.000 zl oplacony gotówka; NIP:
> 584-20-88-050; REGON: 191352920
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
--
-
Pieter Hintjens
iMatix - www.imatix.com
More information about the zeromq-dev
mailing list