Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about MqttCommunicationClosedGracefullyException #450

Closed
PaulFake opened this issue Oct 16, 2018 · 2 comments
Closed

Question about MqttCommunicationClosedGracefullyException #450

PaulFake opened this issue Oct 16, 2018 · 2 comments
Labels
question It is a question regarding the project

Comments

@PaulFake
Copy link
Contributor

I'm trying to diagnose an issue with an AWS broker immediately closing the connection after establishing it. MQTTnet throws a MqttCommunicationClosedGracefullyException, and a stack trace points to this line of MqttPacketReader.cs:

ExceptionHelper.ThrowIfGracefulSocketClose(bytesRead);

This line throws if bytesRead is <= 0. My question is, why would that packet be empty? I ran a Wireshark trace and didn't see any empty packets - rather, I saw an encrypted alert from the server, followed by a FIN/ACK message, neither of which was an empty packet. Am I misinterpreting what I'm seeing here?

@SeppPenner SeppPenner added the question It is a question regarding the project label Jun 25, 2019
@SeppPenner
Copy link
Collaborator

@PaulFake Do you still see this issue in the latest version?

@SeppPenner
Copy link
Collaborator

I will close this due to inactivity now. Please feel free to re-open this issue if it still applies. Maybe also https://github.com/chkr1011/MQTTnet/wiki/Client#connecting-with-amazon-aws can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question It is a question regarding the project
Projects
None yet
Development

No branches or pull requests

2 participants