Skip to content

Implement Eventloop based on pecl/ev #178

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

Closed
wants to merge 4 commits into from
Closed

Conversation

csaoh
Copy link

@csaoh csaoh commented Apr 17, 2013

Fix #163

The tests are failing for now, but the bug (ev does not seem to work with php://temp) was reported.

@romainneutron
Copy link
Member

This is not issue 160 but #163

@csaoh
Copy link
Author

csaoh commented Apr 17, 2013

woops. updated !

}

return function ($event) use ($stream, $listener, $removeCallback) {
if (feof($stream)) {
Copy link
Member

Choose a reason for hiding this comment

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

This if statement should be removed. The stream handler should be removing this from the event loop, not the event loop itself. This statement currently removes the stream from the loop without notifying the listeners.

@cboden cboden mentioned this pull request Jul 21, 2013
@cboden
Copy link
Member

cboden commented Jul 21, 2013

I installed ev through pecl install ev (version 0.2.7), ran `phpunit --filter EvLoopTest, and received the following output:

.EE.E.(libev) cannot allocate 536874976 bytes, aborting.Aborted (core dumped)

@steverhoades
Copy link

Just to document what @cboden and I have been talking about on IRC, it appears that the test is failing due to some issues with EV and how php://temp works. It appears that this was resolved for ExtEvent by the following: https://github.com/reactphp/event-loop/blob/master/tests/ExtEventLoopTest.php#L26 (see https://bugs.php.net/bug.php?id=64652).

This would also need to be added for EvLoop. @csaoh any idea what effort is left on this? I am willing to help if needed.

@romainneutron
Copy link
Member

@steverhoades I think you should pick @csaoh 's work and continue it if you're ok with that

@clue
Copy link
Member

clue commented Sep 19, 2015

This PR seems like a good starting point, thanks @csaoh!

This PR has been WIP for quite some time now and things have changed considerably since then :-)

React now consists of individual components that are maintained individually. Supporting the pecl/ev loop is now related to the react/event-loop component.

@steverhoades started porting this over to this component via reactphp/event-loop#12, so I suppose it makes sense to focus pecl/ev related efforts on this component.

@clue clue closed this Sep 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement new ev pecl package
5 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy