Code Monkey home page Code Monkey logo

Comments (10)

whizlingo avatar whizlingo commented on August 24, 2024

Is this some thing related to the fixes checked in following dotnetty commit Azure/DotNetty@b2f10c2

from azure-iot-protocol-gateway.

nayato avatar nayato commented on August 24, 2024

@whizlingo, fixes in DotNetty are for extraneous errors that follow actual channel closure - that's only about cleaning up noise. If connection gets closed by the remote party as described in the error, you should check the remote party - simulator you've mentioned - for reasons to close the connection. If it's not possible at least checking the exchange on the wire with wireshark might shed some light on this.

from azure-iot-protocol-gateway.

whizlingo avatar whizlingo commented on August 24, 2024

@nayato , We are getting the calls to Exception Caught as soon as we run the service basically post the Channel active event is fired. There is no device trying to connect using device simulator.

from azure-iot-protocol-gateway.

nayato avatar nayato commented on August 24, 2024

Are you saying it is TcpServerSocketChannel that throws and not TcpSocketChannel?

from azure-iot-protocol-gateway.

whizlingo avatar whizlingo commented on August 24, 2024

Yeah It seems when the stack trace of the exception is

at DotNetty.Transport.Channels.Sockets.SocketChannelAsyncOperation.Validate() at DotNetty.Transport.Channels.Sockets.AbstractSocketByteChannel.SocketByteChannelUnsafe.FinishRead(SocketChannelAsyncOperation operation)

Socket Error code is "Connection Reset" if that helps.

from azure-iot-protocol-gateway.

whizlingo avatar whizlingo commented on August 24, 2024

I can still run the wire-shark to see anything but this is my vm hosting it in azure simulator. This only occurs though when hosting the 8883. if i remove the TLShandler , it runs fine. So i guess something getting raised from. So far i have not added dotnetty code to enable debugging.

from azure-iot-protocol-gateway.

nayato avatar nayato commented on August 24, 2024

stack does not tell anything here. Question is basically what is the type of channel where ExceptionCaught occurs. From error it seems it must be TcpSocketChannel but you're saying no one's trying to connect even at this point. If it is TcpSocketChannel, please find out what happens on the other side of connection because it must be initiated from outside and again, according to error, the other party closed the connection hence the error. If it is the other party then it should have more data as to what has triggered it to close the connection.

from azure-iot-protocol-gateway.

whizlingo avatar whizlingo commented on August 24, 2024

ok i see that it indeed is a TCP Socket channel and i see the remote ip as well in the context, will run wireshark now to debug it further. Thanks , will update shortly

from azure-iot-protocol-gateway.

whizlingo avatar whizlingo commented on August 24, 2024

The issue was with unknown TCP re-transmit packets arriving on MQTT ports on my Azure VM. I figured out that it was actually from Azure monitoring.

from azure-iot-protocol-gateway.

robichaud avatar robichaud commented on August 24, 2024

@whizlingo Were you able to find a solution to stop errors/re-transmits?

from azure-iot-protocol-gateway.

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.