Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
@Slf4j
public abstract class MQTTSessionHandler extends MQTTMessageHandler implements IMQTTSession {
protected static final boolean SANITY_CHECK = SanityCheckMqttUtf8String.INSTANCE.get();
private static final double EMA_APLHA = 0.15;
private static final double EMA_ALPHA = 0.15;
private static final int REDIRECT_CHECK_INTERVAL_SECONDS = ClientRedirectCheckIntervalSeconds.INSTANCE.get();
protected final TenantSettings settings;
protected final String userSessionId;
Expand Down Expand Up @@ -370,7 +370,7 @@ public void handlerAdded(ChannelHandlerContext ctx) {
ChannelAttrs.trafficShaper(ctx).setWriteLimit(settings.outboundBandwidth);
ChannelAttrs.trafficShaper(ctx).setMaxWriteSize(settings.outboundBandwidth);
ChannelAttrs.setMaxPayload(settings.maxPacketSize, ctx);
receiveQuota = new AdaptiveReceiveQuota(settings.minSendPerSec, clientReceiveMaximum(), EMA_APLHA);
receiveQuota = new AdaptiveReceiveQuota(settings.minSendPerSec, clientReceiveMaximum(), EMA_ALPHA);
sessionCtx.localSessionRegistry.add(channelId(), this);
sessionRegistration = ChannelAttrs.mqttSessionContext(ctx).sessionDictClient
.reg(clientInfo, (killer, redirection) -> {
Expand Down
Loading