Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v8.0] fix (StompMQConnector): add a timeout for the StompConnector #7854

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

ryuwd
Copy link

@ryuwd ryuwd commented Oct 23, 2024

cc @chrisburr

for #7851

BEGINRELEASENOTES

*StompMQConnector
FIX: add a timeout for the StompConnector to handle nonresponsive sockets which can cause logging to be blocked

ENDRELEASENOTES

@DIRACGridBot DIRACGridBot added the alsoTargeting:integration Cherry pick this PR to integration after merge label Oct 23, 2024
@@ -83,6 +86,7 @@ def setupConnection(self, parameters=None):
connectionArgs = {
"vhost": vhost,
"keepalive": True,
"timeout": stompTimeout,
Copy link
Member

Choose a reason for hiding this comment

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

Having tried it we also need something like "heartbeats": (outgoingHeartbeatMs, incomingHeartbeatMs), here as well. 15_000 seems like a sensible default

@chrisburr
Copy link
Member

I think the logic also needs fixing to close the connection if it's still open.

@ryuwd
Copy link
Author

ryuwd commented Oct 24, 2024

I think the logic also needs fixing to close the connection if it's still open.

It doesn't close by itself on timeout?

@chrisburr
Copy link
Member

It doesn't close by itself on timeout?

I wouldn't expect it to.

@chrisburr chrisburr requested a review from chaen October 24, 2024 13:39
@chrisburr
Copy link
Member

After more consideration I don't think it's needed.

@chrisburr chrisburr merged commit 44f9075 into DIRACGrid:rel-v8r0 Oct 28, 2024
26 checks passed
@DIRACGridBot DIRACGridBot added the sweep:done All sweeping actions have been done for this PR label Oct 28, 2024
DIRACGridBot pushed a commit to DIRACGridBot/DIRAC that referenced this pull request Oct 28, 2024
@DIRACGridBot
Copy link

Sweep summary

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

Successful:

  • integration

fstagni pushed a commit to DIRACGridBot/DIRAC that referenced this pull request Nov 6, 2024
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.

3 participants