Code Monkey home page Code Monkey logo

Comments (12)

nivalxer avatar nivalxer commented on September 13, 2024 4

The reason is that the logic for the SSLStream read buffer has been changed in .NET 8. DotNetty needs to be updated accordingly. I have submitted a pull request (PR), but I am uncertain how long it will take to be merged.
Azure/DotNetty#616

from azure-iot-sdk-csharp.

codeputer avatar codeputer commented on September 13, 2024 1

Still waiting for this to be fixed? Is this not a urgent and necessary to restore faith in latest Nuget packages?

from azure-iot-sdk-csharp.

timtay-microsoft avatar timtay-microsoft commented on September 13, 2024

Can you share some details about what .NET framework you are using in this application? .NET 6+? And what OS are you running here?

from azure-iot-sdk-csharp.

WillooWisp avatar WillooWisp commented on September 13, 2024

I'm using .NET 8 and Windows 11.

from azure-iot-sdk-csharp.

timtay-microsoft avatar timtay-microsoft commented on September 13, 2024

We don't currently support running this SDK on .NET 8, but we'll try to look into this when we get the chance. In the meantime, targeting .NET 7 should fix this issue for you.

from azure-iot-sdk-csharp.

WillooWisp avatar WillooWisp commented on September 13, 2024

Why do you think. NET 8 is the cause of this when the previous version works fine with. NET 8?

from azure-iot-sdk-csharp.

timtay-microsoft avatar timtay-microsoft commented on September 13, 2024

The only meaningful change from the previous SDK version is the upgrade we made to DotNetty from 0.7.4 to 0.7.5. Given that you are seeing this problem (only?) when using MQTT, that suggests to me that there may be some new compatibility issue between DotNetty and .NET 8 in DotNetty 0.7.5

from azure-iot-sdk-csharp.

Clockwork-Muse avatar Clockwork-Muse commented on September 13, 2024

I think I'm hitting this as well, running in a .Net8 Jammy devcontainer. I'm actually attempting to use mosquitto as a test MQTT broker, so that I don't need developers to register devices to an actual Azure IoT Hub and interfere with each other (among other benefits). Under .Net8 it would just... hang when attempting to connect, whereas on .Net7 it will connect and start passing messages.

from azure-iot-sdk-csharp.

rido-min avatar rido-min commented on September 13, 2024

I believe this issue is related to the lack of .NET8 support in dotnetty Azure/DotNetty#614

from azure-iot-sdk-csharp.

jonmikeli avatar jonmikeli commented on September 13, 2024

Similar issues with DPS (provisioning) after the last upgrade.
Context:

  • .NET 8 (no way to go back to .NET 7, it is not LTS)
  • Security type: SAS
  • Enrollment type: Group

from azure-iot-sdk-csharp.

jenscski avatar jenscski commented on September 13, 2024

I think this is fixed in DotNetty now, add direct references to DoNetty in your code to use latest

<PackageReference Include="DotNetty.Codecs.Mqtt" Version="0.7.6" />
<PackageReference Include="DotNetty.Handlers" Version="0.7.6" />

from azure-iot-sdk-csharp.

andyk-ms avatar andyk-ms commented on September 13, 2024

Should be addressed in the new release:
https://github.com/Azure/azure-iot-sdk-csharp/releases/tag/2024-03-28

from azure-iot-sdk-csharp.

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.