Skip to content

[8.0] Add wait timeout when connecting to stomp - #8057

Merged
chaen merged 1 commit into
DIRACGrid:rel-v8r0from
chrisburr:stomp-connect-timeout
Jul 28, 2026
Merged

[8.0] Add wait timeout when connecting to stomp#8057
chaen merged 1 commit into
DIRACGrid:rel-v8r0from
chrisburr:stomp-connect-timeout

Conversation

@chrisburr

Copy link
Copy Markdown
Member

BEGINRELEASENOTES

*Core
FIX: Add wait timeout when connecting to stomp

ENDRELEASENOTES

@chrisburr
chrisburr requested a review from chaen February 24, 2025 09:09
@DIRACGridBot DIRACGridBot added the alsoTargeting:integration Cherry pick this PR to integration after merge label Feb 24, 2025
self.connection.connect(username=user, passcode=password, wait=True)

# Connect to the broker with a timeout of 30 seconds
self.connection.connect(username=user, passcode=password, wait=False)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't as wait=True blocks forever and doesn't have a timeout.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisburr
chrisburr force-pushed the stomp-connect-timeout branch 2 times, most recently from 29b8993 to 1c36a20 Compare May 20, 2025 10:15
@aldbr aldbr linked an issue Feb 4, 2026 that may be closed by this pull request
aldbr
aldbr previously requested changes Apr 14, 2026

@aldbr aldbr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the status of this PR? Shall we try to finish it?

self.connection.connect(username=user, passcode=password, wait=True)

# Connect to the broker with a timeout of 30 seconds
self.connection.connect(username=user, passcode=password, wait=False)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


# Connect to the broker with a timeout of 30 seconds
self.connection.connect(username=user, passcode=password, wait=False)
self.transport.wait_for_connection(30) # pylint: disable=no-member

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no self.transport, IIUC what you want is self.connection.transport no? 😅

@aldbr

aldbr commented May 20, 2026

Copy link
Copy Markdown
Contributor

Ping

@chrisburr
chrisburr force-pushed the stomp-connect-timeout branch from 1c36a20 to f081226 Compare May 21, 2026 09:23
@chaen
chaen force-pushed the stomp-connect-timeout branch from f081226 to c245574 Compare July 28, 2026 08:07
@chaen
chaen dismissed aldbr’s stale review July 28, 2026 09:26

I've implemented the fix

@chaen
chaen merged commit 9d95d87 into DIRACGrid:rel-v8r0 Jul 28, 2026
30 of 31 checks passed
@DIRACGridBot DIRACGridBot added the sweep:done All sweeping actions have been done for this PR label Jul 28, 2026
DIRACGridBot pushed a commit to DIRACGridBot/DIRAC that referenced this pull request Jul 28, 2026
@DIRACGridBot

Copy link
Copy Markdown

Sweep summary

Sweep ran in https://github.com/DIRACGrid/DIRAC/actions/runs/30346648092

Successful:

  • integration

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

Labels

alsoTargeting:integration Cherry pick this PR to integration after merge sweep:done All sweeping actions have been done for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stompy errors in matcher

4 participants