Logo white

Peter M. Groen / FlashMQ

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 453
  • Compare
  • Branches 1
  • Tags 0
  • FlashMQ
  • FlashMQTests
02 Aug, 2022
1 commit
  • Add simple test for user properties
    684f5eb8
    Wiebe Cazemier authored
    2022-08-02 17:08:44 +0200  
    Browse Dir »

01 Aug, 2022
1 commit
  • Fix QoS reduction of queued messages ...
    4a16d48b
    Also add a test to test all scenarios.
    
    This also fixes session clean_start, which was never done since the
    MQTT5 refactor to clean_start (vs clean session).
    Wiebe Cazemier authored
    2022-08-01 20:07:49 +0200  
    Browse Dir »

31 Jul, 2022
5 commits
  • Give testMqtt5DelayedWill a bit more time ...
    abe7fa16
    It timed out sometimes. When it works, it doesn't even take longer,
    because it's just the timeout.
    Wiebe Cazemier authored
    2022-07-31 17:35:08 +0200  
    Browse Dir »
  • Fix QoS reduction on retained messages ...
    958aeb62
    It was caught by an assert. In release mode, this simply meant
    subscribing to 0 still gave you QoS messages.
    Wiebe Cazemier authored
    2022-07-31 17:19:15 +0200  
    Browse Dir »
  • Fix incorrect assert about QoS on wrong object ...
    e3a794e4
    Fixes assertion error in debug only.
    Wiebe Cazemier authored
    2022-07-31 16:34:04 +0200  
    Browse Dir »
  • Stablized test_retained_tree ...
    0cc6610a
    It was flakey. I also ported it to the new test client.
    Wiebe Cazemier authored
    2022-07-31 16:13:34 +0200  
    Browse Dir »
  • Tests for saving clientid and username for publishes
    cd447414
    Wiebe Cazemier authored
    2022-07-31 15:29:41 +0200  
    Browse Dir »

28 Jul, 2022
3 commits
  • Fix comparison between signed and unsigned warning in test
    7ab8deef
    Wiebe Cazemier authored
    2022-07-28 21:36:43 +0200  
    Browse Dir »
  • Fix packet order in subscribing to topic with retained messages ...
    4fcca574
    The order packets would (mostly) arrive, is 'retained publish', then
    'sub ack'. This is now fixed.
    
    This also stablizes test_retained_changed(). The test was also
    refactored to use the new test client.
    Wiebe Cazemier authored
    2022-07-28 21:36:43 +0200  
    Browse Dir »
  • Add test for outgoing topic aliases
    4526f0bd
    Wiebe Cazemier authored
    2022-07-28 21:36:43 +0200  
    Browse Dir »

24 Jul, 2022
2 commits
  • Add test for incoming topic aliases
    c6c22b16
    Wiebe Cazemier authored
    2022-07-24 21:38:31 +0200  
    Browse Dir »
  • Run tests on different port ...
    58550eac
    This prevents confusion when another instance of FlashMQ is running.
    
    This is not the final way. For instance, when SSL connections will also
    be tested, this won't work anymore.
    Wiebe Cazemier authored
    2022-07-24 20:15:45 +0200  
    Browse Dir »

03 Jul, 2022
4 commits
  • Add tests for will
    27b65bef
    Wiebe Cazemier authored
    2022-07-03 14:38:34 +0200  
    Browse Dir »
  • Add packet based test client ...
    56d9c510
    Now that parsing and handling of packets is separated, we can use the
    main code to parse packets in the new FlashMQTestClient. This allows
    great flexibility in inspecting the server response in a flexible
    manner.
    
    We now also have the ability to make tests for MQTT5 features.
    Wiebe Cazemier authored
    2022-07-03 14:38:34 +0200  
    Browse Dir »
  • Separate CONNECT packet parsing and handling ...
    f262b796
    This is necessary for the test client I have in mind, so I can re-use
    this code in that new test client which has no MQTT behavior, but just
    returns packets (meaning I have to be able to parse them without
    initiating handling).
    Wiebe Cazemier authored
    2022-07-03 14:38:18 +0200  
    Browse Dir »
  • Fix circular buffer off-by-one bug in test
    370e9115
    Wiebe Cazemier authored
    2022-07-03 14:37:08 +0200  
    Browse Dir »

30 Jun, 2022
1 commit
  • Don't access current thread through client ...
    70e77e6a
    This needed a separation: getting the current thread, and getting the
    thread of the client you're queueing a command for.
    
    This also resolves a circular reference between Client and ThreadData.
    Wiebe Cazemier authored
    2022-06-30 19:17:01 +0200  
    Browse Dir »

29 Jun, 2022
1 commit
  • Retrieve store from app instance ...
    6cdda452
    Instead of the thread data, which didn't make sense.
    Wiebe Cazemier authored
    2022-06-29 20:29:14 +0200  
    Browse Dir »

21 Jun, 2022
1 commit
  • Add stats about connection count in $SYS ...
    e2ea3ea8
    This required adding a global stats object.
    
    It also contains a bit of refactor to make a type out of the derived
    counters.
    Wiebe Cazemier authored
    2022-06-21 07:44:24 +0200  
    Browse Dir »

17 Jun, 2022
1 commit
  • Move message counting to the end of the call stack ...
    bf2193f9
    This makes much more sense than returning the amount of messages sent
    all the way up the call stack.
    Wiebe Cazemier authored
    2022-06-17 06:43:39 +0200  
    Browse Dir »

22 May, 2022
1 commit
  • Fix bug in persistence tests ...
    756289d4
    It tested the wrong thing. Tests still pass.
    Wiebe Cazemier authored
    2022-05-22 12:02:17 +0200  
    Browse Dir »

01 May, 2022
8 commits
  • Convert to storing Publish object for retained message ...
    75657bf5
    This allows easier saving of MQTT5 properties, for which a new file
    version for retained messages is created. It uses the packet parsing logic.
    Wiebe Cazemier authored
    2022-05-01 17:32:10 +0200  
    Browse Dir »
  • Continue with idea to use parsed packets for loading from disk ...
    c652de5a
    Because clients can now also exist as dummy objects, I had to add some
    extra checks.
    
    Also split up handlePublish() and the new parsePublishData().
    Wiebe Cazemier authored
    2022-05-01 17:32:10 +0200  
    Browse Dir »
  • Replace app start time with queued session removal
    34929680
    Wiebe Cazemier authored
    2022-05-01 17:32:10 +0200  
    Browse Dir »
  • Test unsubscribe ...
    af89bf90
    Only mqtt3 though.
    Wiebe Cazemier authored
    2022-05-01 17:32:10 +0200  
    Browse Dir »
  • Repurpose packet copy test
    a6d7395e
    Wiebe Cazemier authored
    2022-05-01 17:32:10 +0200  
    Browse Dir »
  • Almost works ...
    7b907c84
    I need to decide what to do with getPublishData
    
    and that disabled test needs repurposing.
    Wiebe Cazemier authored
    2022-05-01 17:32:10 +0200  
    Browse Dir »
  • it compiles
    52efbdc7
    Wiebe Cazemier authored
    2022-05-01 17:32:10 +0200  
    Browse Dir »
  • Change clean session into MQTT5 symantics ...
    9a34fc46
    The behavior for MQTT3 clients in the same, but I replaced the term
    'clean session' and described the behavior in MQTT5 terms, of 'clean
    start' and an expiry interval.
    Wiebe Cazemier authored
    2022-05-01 17:32:10 +0200  
    Browse Dir »

06 Mar, 2022
1 commit
  • Fix incorrect heap object throw
    f44f1e79
    Wiebe Cazemier authored
    2022-03-06 11:00:43 +0100  
    Browse Dir »

05 Mar, 2022
1 commit
  • Add proper type for variable byte int ...
    25268f92
    For the coming MQTT5 support, I'll need this a lot.
    Wiebe Cazemier authored
    2022-03-05 15:28:12 +0100  
    Browse Dir »

01 Mar, 2022
1 commit
  • Change writing packets to clients to writing PublishCopyFactory ...
    ecb60b48
    This is a preparation for MQTT5, because when there are receivers and
    publishers with different protocols, you can't always just write out the
    same packet. You can sometimes though, so that's what the copy factory
    determines.
    Wiebe Cazemier authored
    2022-03-01 10:13:15 +0100  
    Browse Dir »

28 Feb, 2022
1 commit
  • Fix qos field on downgraded copy packet ...
    54d52925
    This doesn't actually fix a real bug, just makes assumptions clear.
    Wiebe Cazemier authored
    2022-02-28 19:58:24 +0100  
    Browse Dir »

12 Feb, 2022
2 commits
  • Rename ThreadAuth to ThreadGlobals ...
    681eeb82
    Because that's what's it is now.
    
    A lot of code can be refactored to get the settings from this now, but
    I'm not going to do that yet.
    Wiebe Cazemier authored
    2022-02-12 18:14:23 +0100  
    Browse Dir »
  • Fix not downgrading QoS to subscription QoS ...
    f67238c5
    This entails making copies of the original packet when necessary,
    because QoS 0 doesn't have a packet id. I tried to keep it to an
    absolute minimum and do some precarious optmizations for it. There are
    tests though.
    Wiebe Cazemier authored
    2022-02-12 18:14:23 +0100  
    Browse Dir »

05 Feb, 2022
1 commit
  • Better support / fixes for clients with fd 0 ...
    4947d33a
    It caused really funky behavior. When a destructed client closed fd 0,
    eventfd() would give 0 back as fd. This would then later give errors.
    Wiebe Cazemier authored
    2022-02-05 19:28:14 +0100  
    Browse Dir »

11 Jan, 2022
1 commit
  • Test for the '+/+' retained messages bug ...
    592e12eb
    Committing separately, because I want to be able to revert the fix I'm
    about to commit.
    Wiebe Cazemier authored
    2022-01-11 14:11:39 +0100  
    Browse Dir »

27 Oct, 2021
1 commit
  • Put threadloop function in separate file
    0b1af555
    Wiebe Cazemier authored
    2021-10-27 22:05:17 +0200  
    Browse Dir »

09 Oct, 2021
1 commit
  • Fix tests
    86fb73e0
    Wiebe Cazemier authored
    2021-10-09 14:31:37 +0200  
    Browse Dir »

02 Aug, 2021
1 commit
  • Use thread local pointer to authentication object ...
    c20ba7c5
    There were bugs in which authentication object was used when, causing
    threadings bugs. Instead of getting from the 'sender', we can just store
    a thread local pointer.
    Wiebe Cazemier authored
    2021-08-02 21:09:31 +0200  
    Browse Dir »