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

fix(rpc): windows #6721

Merged
merged 1 commit into from
Dec 18, 2022
Merged

fix(rpc): windows #6721

merged 1 commit into from
Dec 18, 2022

Conversation

rgrinberg
Copy link
Member

We use the pipe trick to interrupt the accept loop. This needs the pipe
to be non blocking, but non blocking pipes are emulated on windows so we
shouldn't try to set them to non blocking.

Signed-off-by: Rudi Grinberg me@rgrinberg.com

ps-id: 2dac6f72-88da-4456-97ac-0c55e080a10a

@rgrinberg rgrinberg added this to the 3.7.0 milestone Dec 16, 2022
@rgrinberg rgrinberg linked an issue Dec 16, 2022 that may be closed by this pull request
We use the pipe trick to interrupt the accept loop. This needs the pipe
to be non blocking, but non blocking pipes are emulated on windows so we
shouldn't try to set them to non blocking.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

ps-id: 2dac6f72-88da-4456-97ac-0c55e080a10a
Copy link
Collaborator

@jonahbeckford jonahbeckford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx. Also tested the change on my PC and it worked. Ship it!

@rgrinberg rgrinberg merged commit 3d9a1fd into main Dec 18, 2022
@rgrinberg rgrinberg deleted the ps/rr/fix_rpc___windows branch December 18, 2022 16:51
emillon pushed a commit to emillon/dune that referenced this pull request Dec 20, 2022
We use the pipe trick to interrupt the accept loop. This needs the pipe
to be non blocking, but non blocking pipes are emulated on windows so we
shouldn't try to set them to non blocking.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
emillon pushed a commit to emillon/dune that referenced this pull request Dec 20, 2022
We use the pipe trick to interrupt the accept loop. This needs the pipe
to be non blocking, but non blocking pipes are emulated on windows so we
shouldn't try to set them to non blocking.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
emillon added a commit that referenced this pull request Dec 20, 2022
We use the pipe trick to interrupt the accept loop. This needs the pipe
to be non blocking, but non blocking pipes are emulated on windows so we
shouldn't try to set them to non blocking.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Co-authored-by: Rudi Grinberg <me@rgrinberg.com>
emillon added a commit to emillon/opam-repository that referenced this pull request Dec 21, 2022
…ne-site, dune-rpc, dune-rpc-lwt, dune-private-libs, dune-glob, dune-configurator, dune-build-info, dune-action-plugin and chrome-trace (3.6.2)

CHANGES:

- Fix configurator when using the MSVC compiler (ocaml/dune#6538, fixes ocaml/dune#6537, @nojb)

- Fix running the RPC server on windows (ocaml/dune#6721 fixes ocaml/dune#6720, @rgrinberg)
jonahbeckford pushed a commit to diskuv/diskuv-opam-repository that referenced this pull request Dec 23, 2022
…ne-site, dune-rpc, dune-rpc-lwt, dune-private-libs, dune-glob, dune-configurator, dune-build-info, dune-action-plugin and chrome-trace (3.6.2)

CHANGES:

- Fix configurator when using the MSVC compiler (ocaml/dune#6538, fixes ocaml/dune#6537, @nojb)

- Fix running the RPC server on windows (ocaml/dune#6721 fixes ocaml/dune#6720, @rgrinberg)
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.

RPC error during dune build --watch on Windows
2 participants