Comments (1)
Just a note here, the structure of aios and cancellation of them seems to be somewhat rough, in that cancellation of the aio may cost quite a bit, whereas with timers we can simply deschedule the timer. The REQ protocol makes use of this to reduce the cost of what would otherwise be a fairly frequent code path.
One thing we might look at doing is scheduling a receive from the REQ, even before the client has issued it, and then having that timeout. That would allow us to use the same AIO for both purposes.
from nng.
Related Issues (20)
- Create a new socket:// transport for socketpair() based connections
- Support nng_aio_set_expire().
- nng_aio_stop.3 refers to `nng_aio_schedule()` instead of `nng_aio_begin()` HOT 1
- Reduce number of FDs HOT 2
- 1.7.1 did not get marked as latest release HOT 1
- [macOS] 1.7.1 broken on Sonoma / aarch64 (apparently only on this specific configuration) HOT 3
- Is websocket support a multiplexing? HOT 2
- Panic HOT 7
- The new findMbedTLS from NNG 1.7.2 fails HOT 24
- Anomalous behavior of tcp flows HOT 8
- v1.5.2 - panic when calling nng_send_aio() - pair protocol, ipc transport HOT 5
- If I understand correctly, NNG's REP is analog to ROUTER when in raw mode or using a context object for asynchronous operations. REQ is similarly analog to DEALER when in raw mode or using a context object. So these socket types are unnecessary... I presume that the same reasoning applies to the lack of XPUB/XSUB in NNG. HOT 1
- Replace ZMQ(router/dealer) to NNG in raw mode problem HOT 1
- [Question] How to pass a value or datas in the callback function of nng_aio_alloc?
- Your text about Russia/Ukraine (typo) HOT 1
- Websocket masking could a lot faster
- IPC socket could support setting ownership HOT 1
- Missing Header in posix_rand_getrandom.c
- nng_msg_insert: munmap_chunk(): invalid pointer HOT 3
- Deadlock during nng_close() - multi platform HOT 23
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.