mochi-co
0648e39507
Update Readme
v2.2.14
2023-06-19 10:28:22 +01:00
mochi-co
233a82e448
Add Healthcheck listener
2023-06-19 10:22:55 +01:00
JB
51a8d8cb54
Update README.md
2023-06-19 10:15:37 +01:00
mochi-co
23c3208310
Update SPDX annotations
2023-06-19 10:14:07 +01:00
mochi-co
23e1092cda
Update Contribution Guidelines
2023-06-19 10:13:43 +01:00
mochi-co
d498576927
Update server version
2023-06-19 09:51:41 +01:00
Derek Duncan
7e14ce99b5
Add healthcheck listener ( #244 )
...
* Add healthcheck listener
* Update improper comments
---------
Co-authored-by: Derek Duncan <derekduncan@gmail.com >
Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com >
2023-06-19 09:44:03 +01:00
thedevop
4db49a4b9d
Fix ScanSubscribersTopicInheritanceBug ( #243 )
...
* Sub a/b should not receive msg for a/b/c...
* Add TestScanSubscribersTopicInheritanceBug test
* Ensure sharedSubscription are gathered
* Fix Unsubscribe for sharedSub and optimization
* Unsub with lower case in TestUnsubscribeShared
* Add test with # for TestScanSubscribersShared
2023-06-19 09:42:16 +01:00
mochi-co
e60b8ff0c9
Update Hooks List
v2.2.13
2023-06-14 20:12:52 +01:00
mochi-co
b9d5dcb5f0
Update Server Version
2023-06-14 20:12:31 +01:00
JB
6d394d1fe9
Expose SendConnack, err return on OnConnect ( #240 )
2023-06-14 20:05:02 +01:00
thedevop
1ee2158711
Add OnRetainPublished hook ( #237 )
...
* Add OnRetainPublished hook
* Skip OnRetainPublished if publish error
2023-06-13 19:24:04 +01:00
mochi-co
af79b55b9f
Update server version
v2.2.12
2023-06-04 07:32:34 +01:00
Derek Duncan
e1a9497c25
Add retainMessage to LWT to properly handle message retention ( #234 )
...
* Add retainMessage to LWT to properly handle message retention if specified in connect
* Add will retain flag on missed test
---------
Co-authored-by: Derek Duncan <derekduncan@gmail.com >
2023-06-04 07:31:55 +01:00
mochi-co
62659e17ba
Update server version
v2.2.11
2023-05-18 20:29:56 +01:00
Hector Oliveros
7ad6dd8e1a
Now when a "publish" command fails, then the publish method will throw an error ( #229 )
...
Errors in the hook when doing a publish were ignored. This caused that test cases could not be made where the publish failed and an error was thrown.
Co-authored-by: hector.oliveros@wabtec.com <hectoroliveros@MacBook-Pro-de-Hector.local >
2023-05-18 20:14:50 +01:00
thedevop
565e07747e
Minimize client lock duration ( #223 )
...
* Minimize client lock duration
* Fix server option example
2023-05-18 20:01:35 +01:00
plourdedominic
6acd775a6b
Fix example usage of NewHTTPStats ( #231 )
...
Co-authored-by: Dominic Plourde <plourded@amotus.ca >
2023-05-18 16:14:29 +01:00
JB
493f6c8bb0
Update README.md new benchmarks
2023-05-15 20:01:12 +01:00
mochi-co
d3785c2717
update server version
v2.2.10
2023-05-08 11:43:46 +01:00
thedevop
52a347169a
Use context to exit WriteLoop ( #222 )
...
* Use context to exit WriteLoop
* Use context to exit WriteLoop
* Use context to exit WriteLoop
* Use context to exit WriteLoop
* Fix misspelling
2023-05-08 11:30:44 +01:00
mochi-co
797d75cb34
update server version
2023-05-06 14:32:42 +01:00
JB
5225a357e5
refactor server keepalive for hook access ( #220 )
v2.2.9
2023-05-06 14:11:54 +01:00
JB
a734a0dc73
Use context to signal client open state ( #218 )
2023-05-06 11:55:40 +01:00
JB
6704cf7227
Add packet ID exhausted hook ( #217 )
2023-05-06 10:37:27 +01:00
thedevop
9233e6fd39
Expire session if SessionExpiryInterval is 0 ( #216 )
...
If SessionExpiryInterval was not set in CONNECT, SessionExpiryIntervalFlag is also not set. According to spec:
If the Session Expiry Interval is absent the value 0 is used. If it is set to 0, or is absent, the Session ends when the Network Connection is closed.
2023-05-06 10:12:33 +01:00
ħþ
1ca65d9631
Update codes.go ( #215 )
...
fix typo
2023-05-06 10:02:25 +01:00
ħþ
33229da885
Update codes.go ( #214 )
...
Fix typo
2023-05-06 09:59:50 +01:00
mochi-co
c274d5fd08
Update server version
v2.2.8
2023-05-05 00:04:27 +01:00
JB
10e82f41d6
Lock on close outbound ( #213 )
2023-05-05 00:02:49 +01:00
JB
e6c07b2b78
Add lock to client writes ( #212 )
2023-05-04 23:17:12 +01:00
JB
eed3ef9606
Add OnPacketIDExhausted hook ( #211 )
2023-05-04 22:51:40 +01:00
JB
1ec880844d
Correctly validate WillProperties ( #210 )
...
Co-authored-by: sukvojte <sukvojte@gmail.com >
2023-05-04 22:37:23 +01:00
werbenhu
4b49652a8c
Update build.yml ( #203 )
2023-05-04 18:09:58 +01:00
mochi-co
d46e7b5bcf
Protect close of nil outbound channel
v2.2.7
2023-04-21 22:09:59 +01:00
mochi-co
17fb7dadbc
Protect close of nil outbound channel
2023-04-21 22:00:27 +01:00
werben
ed7fd836e1
#78 storage hook should not execute the relevant code if the client has been reconnected ( #198 )
...
* storage hook should not execute the relevant code if the client has been reconnected #78
* add test cases for coverage decrease
add test cases for coverage decrease
2023-04-21 21:52:44 +01:00
mochi-co
605bb93c75
Move msgToPacket to storage.Message.ToPacket
2023-04-21 21:49:49 +01:00
Wind
c73ace2ea0
Simplified code ( #195 )
...
Simplify the code for the loadInflight and loadRetained methods.
Adjust the validation order of the processSubscribe method to ensure that it fails quickly if there is an error, since s.hooks. OnACLCheck generally takes a long time.
Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com >
2023-04-21 21:29:03 +01:00
thedevop
aac6d699da
Ensure to close client WriteLoop ( #193 )
...
* Ensure client WriteLoop is closed
* Ensure to close client WriteLoop
2023-04-21 21:20:46 +01:00
Hubertus Hohl
7bd7bd5087
fix: common subscriptions issued by different clients at the same time may be lost ( #186 )
v2.2.6
2023-03-11 23:17:10 +00:00
mochi-co
655bf9fdb1
Update readme
2023-03-11 23:15:51 +00:00
mochi-co
b188055c7d
Update server version
2023-03-11 23:14:51 +00:00
JB
aaf1d9d4c6
Configurable client bufio reader/writer sizes ( #190 )
2023-03-11 23:13:28 +00:00
mochi-co
44ce819318
Update server version
v2.2.5
2023-02-28 20:58:05 +00:00
dependabot[bot]
e4c76cc60c
Bump golang.org/x/net from 0.0.0-20220927171203-f486391704dc to 0.7.0 ( #182 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20220927171203-f486391704dc to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/commits/v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com >
2023-02-28 20:57:33 +00:00
thedevop
da79faa972
Skip expire cleanup for isTakenOver session ( #183 )
...
* Skip expire cleanup for isTakenOver session
* Set prev connection to isTakenOver on CleanSession
#173 .
2023-02-28 20:53:26 +00:00
JB
46babc89c8
Allow 0 byte usernames if correctly formed ( #181 )
...
* Allow 0 byte usernames if correctly formed
* Allow 0 byte usernames if correctly formed
v2.2.4
2023-02-25 01:37:54 +00:00
JB
9b7a943888
Correctly identify and clean taken-over sessions ( #180 )
2023-02-25 01:24:17 +00:00
mochi-co
a909d30923
Small style fix
v2.2.3
2023-02-22 23:33:49 +00:00