fhmq / hmq

High performance mqtt broker
Apache License 2.0
1.32k stars 273 forks source link

fix: close the connection after send connection refused connack packet. #121

Closed TrickIt closed 3 years ago

TrickIt commented 3 years ago

According to MQTT 3.1.1 [Connect Return code] : If a server sends a CONNACK packet containing a non-zero return code it MUST then close the Network Connection [MQTT-3.2.2-5]. http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html

chowyu08 commented 3 years ago

thank you for your pr