Skip to content

fix (MQ): support IPv4-only broker hostnames#8649

Draft
hanx-hep wants to merge 1 commit into
DIRACGrid:integrationfrom
hanx-hep:fix-stomp-ipv4-only
Draft

fix (MQ): support IPv4-only broker hostnames#8649
hanx-hep wants to merge 1 commit into
DIRACGrid:integrationfrom
hanx-hep:fix-stomp-ipv4-only

Conversation

@hanx-hep

@hanx-hep hanx-hep commented Jul 1, 2026

Copy link
Copy Markdown

Summary

  • resolve STOMP broker addresses with AF_UNSPEC so IPv4-only hostnames work
  • preserve the existing IPv6 preference and randomized order within each address family
  • add unit coverage for IPv4-only, dual-stack, and resolution failure cases

Root cause

The connector queried AF_INET6 before AF_INET. On systems where an IPv4-only
hostname causes the IPv6 lookup to raise socket.gaierror, setup returned early
and never attempted the valid IPv4 addresses.

The same resolution logic is present in rel-v9r0 and rel-v8r0, so this fix
should also be considered for backporting to those maintained release branches.

Validation

79 passed in 0.66s

BEGINRELEASENOTES

*Resources

FIX: Allow STOMP MQ connections to use IPv4-only broker hostnames.

ENDRELEASENOTES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant