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

feat: Allow overriding block_on_no_clients queue param #187

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bemyak
Copy link

@bemyak bemyak commented Feb 5, 2024

In the current implementation, when a SUB provider is restarted, the library just hangs without detecting connection loss. This happens because on disconnect a client is kicked out of the queue, as since for all the socket queues block_on_no_clients is set to true, it hangs indefinitely.

I'm unsure what would be the effect of setting block_on_no_clients to false globally (though it seems reasonable), so in this PR add an ability to override this value is introduced via SocketOptions.

@bemyak bemyak force-pushed the allow-override-block_on_no_clients branch from 59ce138 to b36243f Compare February 5, 2024 14:37
@rgbkrk
Copy link
Member

rgbkrk commented Dec 13, 2024

Hey @bemyak, thanks for the contribution and sorry it's taken so long to look over. I'm going to go ahead and rebase this to make sure it builds against latest.

In the current implementation, when a SUB provider is restarted, the
library just hangs without detecting connection loss.
This happens because on disconnect a client is kicked out of the queue,
as since for all the socket queues block_on_no_clients is set to true,
it hangs indefinitely.

I'm unsure what would be the effect of setting block_on_no_clients to
false globally (though it seems reasonable), so in this PR an ability
to override this value is introduced via SocketOptions is added.
@rgbkrk rgbkrk force-pushed the allow-override-block_on_no_clients branch from b36243f to 2a9874d Compare December 13, 2024 23:19
@rgbkrk
Copy link
Member

rgbkrk commented Dec 13, 2024

I thought for sure that would trigger CI.

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.

2 participants