Coder Social home page Coder Social logo

Comments (5)

TalAloni avatar TalAloni commented on August 20, 2024

Thanks Nick,
Did this issue occur on 1.5.1.2?

from smblibrary.

nixtar avatar nixtar commented on August 20, 2024

Sorry for the delay,

Yes, this is on 1.5.1.2. I just tested now on 1.5.1.1 and the exception is not thrown.
This makes sense however as Close is not being called.

For now as a workaround, I've added a check for this particular exception in our UnobservedTaskException handler and am ignoring it.

from smblibrary.

TalAloni avatar TalAloni commented on August 20, 2024

Thanks Nick,
I've spent some time on this,
Using the example you provided, I can see the exception being thrown in a thread pool thread in .NET 6.0.
Interestingly, this does not happen when running under .NET Framework 2.0 and .NET Framework 4.0.
After trying various code changes, it's not clear to me what I can do (within reason) to avoid that behavior.
It's noteworthy that even without calling Socket.Close I'm observing that behavior. (Disconnect triggers it as well)

Given that this is a logging issue rather than an operational bug, and given that I believe I'm following the documentation, I'm closing this issue.
If you have a suggestion on how to address this issue, I'll gladly look into it.

from smblibrary.

nixtar avatar nixtar commented on August 20, 2024

Yeah that's fair enough, I also can't see a way forward without possibly refactoring all the socket handling and likely breaking compatibility with older dotnets. (eg not using Begin* methods)

Thanks for your efforts regardless. 👍

from smblibrary.

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.