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

Open
wants to merge 2 commits into
base: rel-v8r0
Choose a base branch
from

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
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants