-
-
Notifications
You must be signed in to change notification settings - Fork 132
Event config #11
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
Event config #11
Conversation
@steverhoades the curious fact is that we discussed this very exact change a few months ago in reactphp/reactphp#234 (it's somewhere in the outdated diffs) but it looks like we ended up forgetting to push it into a subsequent pull request. I'm definitely +1. @cboden the api change label sounds like something that would cause a BC, or is it just me? |
@nrk I've created an "api change" and a "bc break" label to distinguish the two. When I did some curating in the past I was trying to find where we changes things in the API where there weren't BC breaks - this is to make that search easier if anyone needs it again. |
@cboden ah OK if there's a separate label to highlight bc breaks then it's fine. |
I found the commit @nrk was referring to. The construct took an |
@cboden yes that was the original code but I discussed (not sure if the direct link works for outdated diffs) about using |
Alrighty 👍 |
👍 for this, but how should we go about the Factory? Running into this very issue right now and I prefer not to give users the suggestion to use a specific loop. (And with instructions to avoid this issue with ExtEventLoop.) |
@WyriHaximus maybe a sensible default inside the factory class when dealing with |
@WyriHaximus @nrk I would be against \EventConfig::FEATURE_FDS being enabled by default. This causes Event (Libevent) to choose a sub-optimal polling mechanism on linux, poll vs epoll. |
@WyriHaximus Not all the events loops share the exact same functionality or configuration. I don't think we should try to have some kind of global configuration thingie. Factory is handy when you're learning or developing but, IMO, if you're launching a project I think you should have one of the extensions loaded and create/configure the corresponding event loop. @steverhoades Agreed. -1 on |
@nrk I'm not 100% sure that doing that is the most sensible way tbh. Jus threw a thought out there to see what everyone thinks (and I considered as a good plan at that time). As @steverhoades says it has negative downsides (I wasn't aware of) that can't be ignored. And @cboden makes an excellent note about the event loops. @cboden haven't looked from that perspective at the event loops yet. So you're saying to pick the right loop for the project? Makes sense! @steverhoades Agreed, also -1 on |
@steverhoades you have a point there, then we just need to make it clear enough through documentation how |
Add support for EventConfig for the ExtEventLoop. This addresses the issue of epoll not supporting system file descriptors.