Skip to content

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