Comments (2)
I just ran the Mono Migration Analyzer (MoMA) and it reported only 4 issues:
- Calling Method: void TuneTcpKeepalives (Socket, int, int, int, int)
- Method that Throws NotImplementedException: int Socket.IOControl (IOControlCode, Byte[], Byte[])
- Calling Method: void TuneTcpKeepalives (Socket, int, int, int, int)
- Method with [MonoTodo] Reason: int Socket.IOControl (IOControlCode, Byte[], Byte[])
- Calling Method: void Open ()
- P/Invoke Method P/Invoke Library: IntPtr Opcode/NativeMethods.VirtualAlloc (IntPtr, UIntPtr, Opcode/AllocationType, Opcode/MemoryProtection) kernel32.dll
- Calling Method: void Close ()
- P/Invoke Method P/Invoke Library: bool Opcode/NativeMethods.VirtualFree (IntPtr, UIntPtr, Opcode/FreeType) kernel32.dll
from netmq.
Actually the TCP Keep Alive is not much of an issue, because this feature is not supported by Mono, therefore if somebody develop for Mono they should not use this feature.
Regarding the VirtualAlloc and VirtualFree, the issue is that zeromq is using something called RDTSC (some kind of timestamp) to decide if need to handle commands or no, the idea is that you only want to handle command once every X microseconds, calling the RDTSC is very cheap in performance while using other methods can cost more.
In order to call RDTSC you need to use assembly, this is way the VirtualAlloc and VirtualFree are used. Also if the platform is not windows RDTSC is not used and instead Stopwatch.GetTimestamp is used.
from netmq.
Related Issues (20)
- RobiniaDocs API Explorer
- ZMQ_ROUTER_NOTIFY this?
- Critical CVE-2021-24112
- Feature. NetMQSocket TryReceive with CancellationToken
- IPC not working between .net7 and .net461 HOT 1
- NetMQ.NetMQException: Exception of type 'NetMQ.NetMQException' was thrown at NetMQ.Core.Ctx.CreateSocket(ZmqSocketType type)
- netmq is missing NuGet package README file
- Setting RouterMandatory on RouterSocket causes InvalidException
- "Closed" callback is called after the "Connected" callback when changing socket address.
- SubscriberSocket System.InvalidOperationException: Operation already in progress
- Poller thorws exception when signal fails on Recv() when resource temporarily unavailable
- Fix Division by Zero Error in FairQueueing Class When m_active is Zero
- Leverage framework dependencies where possible HOT 4
- Mailbox.TryRead still throwing in debug mode
- Process crash due to an unhandled exception in Mechanism.Encode
- StreamSocket does not send empty connect/disconnect message when peers connect/disconnect HOT 2
- Update of license from LGPL to MPL
- whether NetMQ supports queue data persistence ?
- Simplest example doesn't work
- MQ Client fails at sending
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 netmq.