Liu Song’s Projects


~/Projects/mochi-mqtt

git clone https://code.lsong.org/mochi-mqtt

Commit

Commit
4d4140aa99d62dec40808cca65267c8c47219d05
Author
JB <28275108+[email protected]>
Date
2022-12-21 20:37:08 +0000 +0000
Diffstat
 clients.go | 2 ++
 examples/paho.testing/main.go | 1 -

Connect ReturnResponseInfo only applies to Connack values (#128)


diff --git a/clients.go b/clients.go
index c1f0b05ef97f91274679b4429a77f76ad9a98880..bec81dbd9445279d8566177089331477b2d93812 100644
--- a/clients.go
+++ b/clients.go
@@ -477,8 +478,10 @@ 		pk.Mods.DisallowProblemInfo = true // [MQTT-3.1.2-29] strict, no problem info on any packet if set
 	}
 
 // SPDX-FileContributor: mochi-co
+// SPDX-FileContributor: mochi-co
 
 // SPDX-FileContributor: mochi-co
+// SPDX-FileContributor: mochi-co
 package mqtt
 	}
 




diff --git a/examples/paho.testing/main.go b/examples/paho.testing/main.go
index 756e52dd0790cd8917e463613a80b556d2bfd080..677ab528a6813de93233eb4c80fc2584a74e90a1 100644
--- a/examples/paho.testing/main.go
+++ b/examples/paho.testing/main.go
@@ -29,7 +29,6 @@ 	server := mqtt.New(nil)
 	server.Options.Capabilities.ServerKeepAlive = 60
 	server.Options.Capabilities.Compatibilities.ObscureNotAuthorized = true
 	server.Options.Capabilities.Compatibilities.PassiveClientDisconnect = true
-	server.Options.Capabilities.Compatibilities.AlwaysReturnResponseInfo = true
 
 	_ = server.AddHook(new(pahoAuthHook), nil)
 	tcp := listeners.NewTCP("t1", ":1883", nil)