-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
readall on STDIN has 10MB limit #10655
Comments
Could this be some kind of kernel limit, similar to #8789? In this case, however, there shouldn't be a fundamental problem, since the producer and the consumer of the pipe are different processes. |
Although it stops the async reading when the buffer is "full", it doesn't close the stream, which is what readall() is waiting for. Possibly things will break if the callback closes a stream even though there is still data in it, and that doesn't really fix readall, anyway. It looks like readall wants to wait for the stream to stop being active and then |
Here's a simple script:
readwrite.jl:
If I pipe 10,485,760 bytes or fewer to it, it will succeed:
If I pipe more than 10,485,760 bytes to it, it will freeze (note ctrl-C):
10,485,760 / 1024 is 10,240 which seems like there's some kind of 10MB limit going on here.
Just as a sanity check, I confirmed that an equivalent script in Ruby succeeds:
I'm using Mac OS Mavericks. Julia 0.3.6.
The text was updated successfully, but these errors were encountered: