hivemq-mqtt-client-dotnet icon indicating copy to clipboard operation
hivemq-mqtt-client-dotnet copied to clipboard

All messages send, only 20% received

Open mkb-mb opened this issue 1 year ago • 10 comments
trafficstars

🐛 Bug Report

🔬 How To Reproduce

Steps to reproduce the behavior:

  1. Compile and run the attached code

Code sample

See attached code.

Environment

Where are you running/using this client?

What version of this client are you using? 0.23.0+build.618

Operating System? Windows 10

Hardware or Device? Dell laptop

.NET version: 6

Screenshots

Console output:

Connected result: Success Subscribed result: GrantedQoS1 - Notification/HiveRawTest Connect: 1 Disconnect: 0 Sent: 50000 Failed send: 0 Unique Received: 5765 Received: 5765 Duplicates: 0 Mismatch: 0 Connect: 1 Disconnect: 0 Sent: 50000 Failed send: 0 Unique Received: 10756 Received: 10756 Duplicates: 0 Mismatch: 0 Connect: 1 Disconnect: 0 Sent: 50000 Failed send: 0 Unique Received: 10756 Received: 10756 Duplicates: 0 Mismatch: 0

📈 Expected behavior

I am publishing 50,000 messages (on a single topic) as quickly as possible. I have a subscription (setup on during connect) that should catch all messages.

The payload for each message is minimal (4 bytes).

I receive less than 11,000 message.

I expected to receive all QoS 1 messages that are published

If I do not try to publish messages concurrently all messages are (usually) received but it takes much longer.

📎 Additional context

Program.cs.txt

mkb-mb avatar Sep 30 '24 18:09 mkb-mb