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

do not re-create UnixStream on every message #4

Open
jonniek opened this issue Aug 28, 2022 · 0 comments
Open

do not re-create UnixStream on every message #4

jonniek opened this issue Aug 28, 2022 · 0 comments

Comments

@jonniek
Copy link
Owner

jonniek commented Aug 28, 2022

unix socket throws some errors because we are not keeping the socket open to listen to responses

[ipc_8] Write error (Broken pipe)

It would be more efficient not to open the socket on every message too.

The open socket could be put in app state in a Mutex, but that makes it messy to avoid in windows with cfg flags. Maybe there is something more elegant.

@jonniek jonniek changed the title do not re-create socket do not re-create UnixStream on every message Aug 28, 2022
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