Introduce c->is_mqtt5 for keeping mqtt version. Make mqtt over ws work again

This commit is contained in:
Sergey Lyubka committed 2022-07-04 17:47:17 +01:00
1 parent 6c796b8552
commit e4a5296fbf
5 files changed
+28 -26

No files matched your search

+1
View File
@@ -60,6 +60,7 @@ struct mg_connection {
unsigned is_tls_hs : 1; // TLS handshake is in progress
unsigned is_udp : 1; // UDP connection
unsigned is_websocket : 1; // WebSocket connection
unsigned is_mqtt5 : 1; // For MQTT connection, v5 indicator
unsigned is_hexdumping : 1; // Hexdump in/out traffic
unsigned is_draining : 1; // Send remaining data, then close and free
unsigned is_closing : 1; // Close and free the connection immediately