-
Notifications
You must be signed in to change notification settings - Fork 175
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
Tell libev to use kqueue by default on macOS #601
Comments
libev should probably also be chosen by default on mac: lwt/src/unix/config/discover.ml Lines 860 to 868 in ee466e2
|
This also seems to be a duplicate of #87. |
I am currently having problems with this. When I run: |
@Marchhill what Lwt version are you using? Can you reproduce on the HEAD of the master branch? I don't have a mac so I can't reproduce, but having the added info could help someone else check. |
On macOS, libev seems to default, too often, to
select(2)
. Given that a major reason for using libev in the first place is to avoidselect(2)
, we should have Lwt ask libev for itskqueue
backend explicitly.In other words, on macOS,
new Lwt_engine.libev ()
should default tonew Lwt_engine.(libev ~backend:Ev_backend.kqueue ())
. See classLwt_engine.libev
.cc @yallop, @anmonteiro as people who have been bitten by this.
The text was updated successfully, but these errors were encountered: