-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e46a17
commit fc9760a
Showing
3 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,7 @@ private Task<bool> ConnectionWriterAsync(CancellationToken cancellationToken) => | |
// QoS > 0 - Add to transaction queue | ||
if (this.transactionQueue.TryAdd(publishPacket.PacketIdentifier, new List<ControlPacket> { publishPacket }) == false) | ||
{ | ||
Logger.Warn("Duplicate packet ID detected."); | ||
Logger.Warn($"Duplicate packet ID detected {publishPacket.PacketIdentifier} while queueing to transaction queue for an outgoing QoS {publishPacket.Message.QoS} publish ."); | ||
continue; | ||
} | ||
} | ||
|
@@ -334,8 +334,8 @@ private Task<bool> ReceivedPacketsHandlerAsync(CancellationToken cancellationTok | |
{ | ||
if (packet.PacketSize > this.Options.ClientMaximumPacketSize) | ||
{ | ||
Logger.Warn($"Packet size {packet.PacketSize} exceeds maximum packet size {this.Options.ClientMaximumPacketSize}. Disconnecting."); | ||
Logger.Debug($"{this.Options.ClientId}-(RPH)- Packet size {packet.PacketSize} exceeds maximum packet size {this.Options.ClientMaximumPacketSize}. Disconnecting."); | ||
Logger.Warn($"Received packet size {packet.PacketSize} exceeds maximum packet size {this.Options.ClientMaximumPacketSize}. Disconnecting."); | ||
Logger.Debug($"{this.Options.ClientId}-(RPH)- Received packet size {packet.PacketSize} exceeds maximum packet size {this.Options.ClientMaximumPacketSize}. Disconnecting."); | ||
|
||
var opts = new DisconnectOptions | ||
{ | ||
|
@@ -411,6 +411,8 @@ internal void HandleIncomingPublishPacket(PublishPacket publishPacket) | |
{ | ||
// We've received a QoS 1 publish. Send a PubAck. | ||
var pubAckResponse = new PubAckPacket(publishPacket.PacketIdentifier, PubAckReasonCode.Success); | ||
// FIXME We should wait until puback is sent before launching event | ||
Check warning on line 414 in Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x
Check warning on line 414 in Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs GitHub Actions / pipeline-ubuntu-latest-dotnet-7.0.x
Check warning on line 414 in Source/HiveMQtt/Client/HiveMQClientTrafficProcessor.cs GitHub Actions / pipeline-ubuntu-latest-dotnet-8.0.x
|
||
// FIXME Check DUP flag setting | ||
this.SendQueue.Add(pubAckResponse); | ||
} | ||
else if (publishPacket.Message.QoS is MQTT5.Types.QualityOfService.ExactlyOnceDelivery) | ||
|
@@ -421,7 +423,7 @@ internal void HandleIncomingPublishPacket(PublishPacket publishPacket) | |
|
||
if (this.transactionQueue.TryAdd(publishPacket.PacketIdentifier, publishQoS2Chain) == false) | ||
{ | ||
Logger.Warn("QoS2: Duplicate packet ID detected."); | ||
Logger.Warn($"Duplicate packet ID detected {publishPacket.PacketIdentifier} while queueing to transaction queue for an incoming QoS {publishPacket.Message.QoS} publish ."); | ||
pubRecResponse.ReasonCode = PubRecReasonCode.PacketIdentifierInUse; | ||
} | ||
|
||
|