Giter VIP home page Giter VIP logo

Comments (8)

somdoron avatar somdoron commented on July 19, 2024

I'm not sure what is the issue? anyway it's not only for the XHasIn, it's also for the recv message which should throw an again exception when their is no message available.

from netmq.

cwoode avatar cwoode commented on July 19, 2024

A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll
A first chance exception of type 'NetMQ.AgainException' occurred in NetMQ.dll

This is thrown over and over and over again.

It fills the debug log in visual studio and is also not great when the intention is just to signify that there's no message.
I can't tell without looking at the code whether it is an exception I need to worry about or not.

from netmq.

somdoron avatar somdoron commented on July 19, 2024

Can you provide code? I want to know if this happen in the Router.Recv or in the XHasIn...

from netmq.

somdoron avatar somdoron commented on July 19, 2024

also take a look at SocketBase.Recv, it's also using the again exception.

The issue is that in C# it's more common to use exceptions then error codes, the libzmq is written in C++ where it's more common to use error codes.

If the exception that flooding the debug log is being handled in the XHasIn maybe we can do something, but if it being handled in the socketbase.recv i'm not sure it's right do to something about it.

from netmq.

cwoode avatar cwoode commented on July 19, 2024

AgainException

Don't know if this helps.

from netmq.

tobi-tobsen avatar tobi-tobsen commented on July 19, 2024

In my opinion (and without further analysing the code and only looking at the code @cwoode pasted) he is right: in this case it seems not to be exceptional behaviour and therefore it should not throw an exception which is catches at the next level.

cwoode [email protected] schrieb:

AgainException

Don't know if this helps.


Reply to this email directly or view it on GitHub:
#57 (comment)

Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

from netmq.

somdoron avatar somdoron commented on July 19, 2024

OK, I'm working on a fix.

from netmq.

almazik avatar almazik commented on July 19, 2024

Fixed with pull request #66

from netmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.