Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealer sending phantom message at connect #763

Closed
hintjens opened this issue Nov 27, 2013 · 4 comments
Closed

Dealer sending phantom message at connect #763

hintjens opened this issue Nov 27, 2013 · 4 comments

Comments

@hintjens
Copy link
Member

Problem: when a 2.2 ROUTER gets a new connection from a 4.0.3 DEALER, an empty message arrives before anything else. This is not normal behavior.

Solution: the problem is caused by libzmq/4.0.x wrongly sending the identity message twice, to a 2.x peer. Here is what the 2.x peer receives (three frames):

-------------------
1: FF 
8: 00 00 00 00 00 00 00 06 
1: 7F 
5: 31 32 33 34 35 
-------------------
1: 06 
1: 00 
5: 31 32 33 34 35 
-------------------
1: 07 
1: 00 
6: 48 65 6C 6C 6F 00 
-------------------

The second frame is bogus.

@hintjens
Copy link
Member Author

Here is a stand-alone test case, which requires CZMQ. It simulates a ZMTP V1 ROUTER peer and then dumps what it receives.

hurtonm added a commit to hurtonm/libzmq that referenced this issue Nov 30, 2013
hintjens added a commit that referenced this issue Dec 1, 2013
@hintjens
Copy link
Member Author

hintjens commented Dec 1, 2013

Confirmed fixed. Yay! Thanks :-)

@hintjens hintjens closed this as completed Dec 1, 2013
@dfszb
Copy link

dfszb commented Jan 10, 2014

Does 4.0.3 already contain this fix?
It looks like the 4.0.4 will be the first that will have it, however 4.0.4 seems to be waiting to be released.

@hintjens
Copy link
Member Author

I'll make a release 4.0.4 asap then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants