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

Some socket option should be set to the accepted Socket, not the listening Socket. #2126

Closed
wants to merge 1 commit into from

Conversation

xljiulang
Copy link
Contributor

When I adapted MqttServerTcpEndpointBaseOptions in MQTTnet.AspnetCore to the socket accepted by kestrel, I unexpectedly found that the MqttTcpServerListener of MQTTnet.Server was adapted to the socket used for listening in its implementation.
I confirmed that the NoDelay, LingerState and KeepAlive* options are all used to set the socket accepted.

@xljiulang
Copy link
Contributor Author

After analyzing the packets captured by Wireshark, I found that the settings of the socket to be listened to also automatically affect the sockets it accepts. So there is no problem here, it is just a blind spot in my personal knowledge.

@xljiulang xljiulang closed this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant