-
Notifications
You must be signed in to change notification settings - Fork 74
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
Use Lwt_switch instead of Lwt_condition to stop the server loop #352
Comments
craigfe
added a commit
to craigfe/ocaml-conduit
that referenced
this issue
Dec 4, 2020
Fix mirage#352. The `lwt` and `async` service loops previously took condition variables that are used to signal when to shutdown. This resulted in a race condition: the shutdown signal can be broadcast before the server is waiting on it. Fixed by having the service loops take switches as configuration instead.
craigfe
added a commit
to craigfe/ocaml-conduit
that referenced
this issue
Dec 4, 2020
Fix mirage#352. The `lwt` and `async` service loops previously took condition variables that are used to signal when to shutdown. This resulted in a race condition: the shutdown signal can be broadcast before the server is waiting on it. Fixed by having the service loops take switches as configuration instead.
craigfe
added a commit
to craigfe/ocaml-conduit
that referenced
this issue
Dec 4, 2020
Fix mirage#352. The `lwt` and `async` service loops previously took condition variables that were used as a shutdown signal. This resulted in a race condition: the shutdown signal can be broadcast before the server is waiting on it. Fixed by having the service loops take switches as configuration instead.
craigfe
added a commit
to craigfe/ocaml-conduit
that referenced
this issue
Dec 4, 2020
Fix mirage#352. The `lwt` and `async` service loops previously took condition variables that were used as a shutdown signal. This resulted in a race condition: the shutdown signal can be broadcast before the server is waiting on it. Fixed by having the service loops take switches as configuration instead.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #339, /cc @talex5:
The text was updated successfully, but these errors were encountered: