Skip to content

Commit

Permalink
Handled different extension unique id
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
  • Loading branch information
owaiskazi19 committed Jun 23, 2023
1 parent ac39864 commit d2e28f0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ public ConnectionManager.ConnectionValidator connectionValidatorForExtensionConn
if (Strings.isNullOrEmpty(threadPool.getThreadContext().getHeader("extension_unique_id"))) {
threadPool.getThreadContext().putHeader("extension_unique_id", extensionUniqueId);
}
if (!extensionUniqueId.equals(threadPool.getThreadContext().getHeader("extension_unique_id"))) {
throw new ConnectTransportException(node, "validation failed. unexpected extension");
}
handshake(newConnection, actualProfile.getHandshakeTimeout().millis(), cn -> true, ActionListener.map(listener, resp -> {
final DiscoveryNode remote = resp.discoveryNode;

Expand Down

0 comments on commit d2e28f0

Please sign in to comment.