-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Not opening/reading all files #70
Comments
The eio error is known #43... That child process takes long to read large files is unfortunate but it's how it is. You need to tell a child process what to do, the child process reads the file, squeezes the data through a socket and the main process needs to read the socket. Using a buffer and |
Yes, this is unfortunate. I put this aside for now and created what I required with another solution (which isn't a reactor pattern) But, I would still like to give this a shot and do it with ReactPHP. |
The changing numbers of filesize is related to how variables work. I've changed your one variable |
Description
Trying to read 10 files from disk usually ends up skipping some of them randomly with error
Takes for ever to load with the ChildProcess adapter.
strlen()
also shows different bytes each time (might be different issue)OS/PHP versions
Sample script
https://gist.github.com/petsoukos/2cc5f7cc3181efbaab12d43fbe325644
Create some random files with sizes over 3MB up to 150MB and store em in a "downloads" folder or adjust the script to point to your files.
Sample output
The text was updated successfully, but these errors were encountered: