Skip to content

Commit

Permalink
Return Bad_TooManyOperations if methodsToCall exceeds configured limit
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinherron committed Dec 2, 2019
1 parent 41b1b9a commit dcf4593
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -49,6 +49,11 @@ public void onCall(ServiceRequest service) {
return;
}

if (methodsToCall.size() > server.getConfig().getLimits().getMaxNodesPerMethodCall().longValue()) {
service.setServiceFault(StatusCodes.Bad_TooManyOperations);
return;
}

DiagnosticsContext<CallMethodRequest> diagnosticsContext = new DiagnosticsContext<>();

CallContext context = new CallContext(
Expand Down

0 comments on commit dcf4593

Please sign in to comment.