Skip to content

Andrew/issue 383 fix hang #384

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Andrew/issue 383 fix hang #384

wants to merge 3 commits into from

Conversation

ayjayt
Copy link
Collaborator

@ayjayt ayjayt commented Aug 13, 2025

Fixes #383

Adds missing argument that allows python to close without awaiting thread.

Also clarifies that the object is a singleton and it can only be started once. However, adds more functions to silence related warnings.

Also adds the atexit concept from mytien.

@ayjayt ayjayt marked this pull request as draft August 13, 2025 20:22
@ayjayt
Copy link
Collaborator Author

ayjayt commented Aug 13, 2025

  • Needs test
  • Is this API really ok?

@emilykl
Copy link
Collaborator

emilykl commented Aug 14, 2025

@ayjayt The pattern of always emitting a warning but silencing it under some circumstances feels backwards to me.

Instead, could the open() and close() functions be modified to accept an argument which controls whether or not to emit a warning?

@ayjayt
Copy link
Collaborator Author

ayjayt commented Aug 14, 2025

Yeah in general i'm not 100% sure this is the Best API but the warning is only emited either way when the user is calling Open on an already opened instance or close on an already closed instance

As for arguments, yes

@emilykl
Copy link
Collaborator

emilykl commented Aug 14, 2025

Right yes by "always" emit a warning I mean always emit when the server is already running.

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.

Test new sync server API hanging:
2 participants