Comments (5)
FYI I have just had the problem occur with nng_msleep(1)
as well, so evidently this isn't quite enough to work-around this problem.
from nng.
Yeah, I'd guess msleep 10 would be better. :-)
Due to the way Windows IPC works, there are some asynchronicity things going on under the hood that make it hard to be fully synchronous. TCP (and IPC on UNIX systems) doesn't suffer this.
I'll look again to see if there are things I can do to make this better. The entire IPC mechanism for Windows is a strange beast, as it is entirely unlike UNIX domain sockets.
from nng.
dial also always runs more or less asynchronously, even on TCP and UNIX sockets -- because of the way NNG is architected. There isn't really a great solution to this, as at present there is no two-way handshake. We could add a complete two way handshake, but that would make the setup take a little longer, and it would break compatibility (which is the real reason we haven't done it yet).
from nng.
It is perhaps an unusual situation where it is desirable to have complete synchronization for the dial operation, however, if it's possible to implement a complete two way handshake perhaps we could avoid breaking compatibility by only doing this if a different flag is passed to the dial function?
from nng.
Related Issues (20)
- Android gradle builds are failing while trying to use libnng.a HOT 1
- TLS test failures
- Define NNG_EXPIRE_THREADS not set in CMakeLists.txt HOT 3
- nng_aio_result return 0 but nng_aio_get_msg return NULL msg HOT 2
- Warning when building with NDEBUG HOT 3
- [Question] Server (rep) keep receiving same data HOT 1
- Throw NNG_EADDRINUSE but cannot find which process HOT 2
- nngcat server cannot support more than 1.2K nngcat clients HOT 9
- Limits (restrictions) for PUB/SUB protocol HOT 1
- How to specific tcp req local port number HOT 6
- [question] How to run the server normally when running in REQ mode? HOT 3
- NNG Socket Concept and Endpoints HOT 1
- NNG Architecture and Constraints HOT 1
- NNG Port to Other Languages HOT 3
- cmake find_package fails due to too restrictive permissions of /usr/local/lib64/cmake directory HOT 4
- NNG fails in child process created using fork() HOT 2
- Demo application will not link demo application under windows, with nng.lib built as static library HOT 3
- Can NNG be used for LAN service discovery? HOT 3
- Q: Does nng has 'Too many open files' quesion? 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 nng.