Merge branch 'rc' into error-processing-resources
This commit is contained in:
commit
28df1a48b8
@ -865,6 +865,8 @@ public class DeviceActorMessageProcessor extends AbstractContextAwareMsgProcesso
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void notifyTransportAboutClosedSessionMaxSessionsLimit(UUID sessionId, SessionInfoMetaData sessionMd) {
|
private void notifyTransportAboutClosedSessionMaxSessionsLimit(UUID sessionId, SessionInfoMetaData sessionMd) {
|
||||||
|
attributeSubscriptions.remove(sessionId);
|
||||||
|
rpcSubscriptions.remove(sessionId);
|
||||||
notifyTransportAboutClosedSession(sessionId, sessionMd, TransportSessionCloseReason.MAX_CONCURRENT_SESSIONS_LIMIT_REACHED);
|
notifyTransportAboutClosedSession(sessionId, sessionMd, TransportSessionCloseReason.MAX_CONCURRENT_SESSIONS_LIMIT_REACHED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -115,8 +115,9 @@ public class DefaultTbRuleEngineRpcService implements TbRuleEngineDeviceRpcServi
|
|||||||
ToDeviceRpcRequest request = new ToDeviceRpcRequest(src.getRequestUUID(), src.getTenantId(), src.getDeviceId(),
|
ToDeviceRpcRequest request = new ToDeviceRpcRequest(src.getRequestUUID(), src.getTenantId(), src.getDeviceId(),
|
||||||
src.isOneway(), src.getExpirationTime(), new ToDeviceRpcRequestBody(src.getMethod(), src.getBody()), src.isPersisted(), src.getRetries(), src.getAdditionalInfo());
|
src.isOneway(), src.getExpirationTime(), new ToDeviceRpcRequestBody(src.getMethod(), src.getBody()), src.isPersisted(), src.getRetries(), src.getAdditionalInfo());
|
||||||
forwardRpcRequestToDeviceActor(request, response -> {
|
forwardRpcRequestToDeviceActor(request, response -> {
|
||||||
if (src.isRestApiCall()) {
|
String originServiceId = src.getOriginServiceId();
|
||||||
sendRpcResponseToTbCore(src.getOriginServiceId(), response);
|
if (src.isRestApiCall() && originServiceId != null) {
|
||||||
|
sendRpcResponseToTbCore(originServiceId, response);
|
||||||
}
|
}
|
||||||
consumer.accept(RuleEngineDeviceRpcResponse.builder()
|
consumer.accept(RuleEngineDeviceRpcResponse.builder()
|
||||||
.deviceId(src.getDeviceId())
|
.deviceId(src.getDeviceId())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user