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

wormhole <-> hammerspoon deadlock #5

Open
dandavison opened this issue Sep 1, 2024 · 0 comments
Open

wormhole <-> hammerspoon deadlock #5

dandavison opened this issue Sep 1, 2024 · 0 comments

Comments

@dandavison
Copy link
Owner

It's possible to cause hammerspoon and wormhole to lock up by doing operations in quick succession. See

wormhole/src/wormhole.rs

Lines 51 to 59 in ed1aada

// wormhole uses the `hs` client to make a call to the hammerspoon
// service. But one might also want to use hammerspoon to configure a
// key binding to make a call to the wormhole service. In practice I
// found that hammerspoon did not support this concurrency: it was
// unable to handle the `hs` call from wormhole when it was still
// waiting for its originating HTTP request to return. Instead the `hs`
// call blocked until the HTTP request timed out. So, wormhole returns
// immediately, performing its actions asynchronously.
if let Some((Some(project_path), mutation, land_in)) =

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

No branches or pull requests

1 participant