Comments (3)
Thanks for the good catch.
An equivalent C code returns ECONNREFUSED and jeromq returns false.
But for the compatibility between jeromq and jzmq, jeromq should raise org.jeromq.ZMQException.
from jeromq.
Thank you for fixing it!
from jeromq.
I just tried @SlavikBaranov's JmqTest
exactly as posted above and I get the same hanging behavior. However, I get it under both jeromq (0.3.4) and jzmq (3.0.1).
If, as suggested in the original description, I uncomment lines 18-22 and comment line 35, everything works as expected under both jeromq and jzmq.
With that said, it seems like this is actually the documented behavior. Per http://zguide.zeromq.org/page:all#Unicast-Transports (zeromq/libzmq#372):
The inter-thread transport, inproc, is a connected signaling transport. It is much faster than tcp or ipc. This transport has a specific limitation compared to tpc and icp: the server must issue a bind before any client issues a connect. This is something future versions of ØMQ may fix, but at present this defines how you use inproc sockets. We create and bind one socket and start the child threads, which create and connect the other sockets.
So I'm surprised that the desired behavior and/or the fix ever worked, as it seems to go directly against this documented limitation. Am I missing something?
from jeromq.
Related Issues (20)
- xSub socket subscription throws IllegalArgumentException HOT 1
- ZError Error number description HOT 1
- Socket#connect hangs for ever on wrong host/port
- ZCertStore's loadFiles recursion logic is incorrect only recursing into first subdir. HOT 3
- Will there be another release? HOT 3
- Problem: Changelog is out of date
- Problem: No clear examples for Curve usage
- Problem: No automated way to deploy a release to maven central HOT 2
- socket.CLIENT does not seem to do anything in java8 HOT 2
- ipc:// protocol with zeromq. Java does support UNIX domain socket since JDK 16 HOT 1
- periodic index-out-of-bounds error HOT 9
- issue with kvmsg get/set operation HOT 2
- NPE after uplift jeromq from 0.5.2 to 0.5.3 HOT 3
- 0.5.4 and 0.6 versions HOT 3
- MsgsendBlockAndCpuIs100% HOT 7
- ipc HOT 3
- New client cannot receive any data in PUB/SUB mode HOT 1
- How to split `ZMsg` in reply envelope and request? HOT 1
- reaper-1 thread consuming 99.9% CPU HOT 2
- DEALER recv sometimes hangs HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jeromq.