Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

posix.cat hangs when reading multiple large files #38

Closed
shansen-xx opened this issue Jan 4, 2010 · 3 comments
Closed

posix.cat hangs when reading multiple large files #38

shansen-xx opened this issue Jan 4, 2010 · 3 comments

Comments

@shansen-xx
Copy link

This error only seems to appear when using posix.cat to read multiple files (or the same file multple times) using posix.cat. strace shows that it's hanging on epoll_wait.

var sys = require('sys');
var posix = require('posix');
var doc = '/etc/hosts';
for(var i=0;i<30;i++) {
posix.cat(doc).addCallback(
function(data) {
sys.puts("beep");
});
}

@shansen-xx
Copy link
Author

using latest git version:
v0.1.24-3-gfd184ee

@hassox
Copy link

hassox commented Jan 4, 2010

I'm having this problem too. When I run some concurrent requests with my app caring a file, it hangs. When I set the concurrency to 1 however it's fine.

@ry
Copy link

ry commented Jan 5, 2010

thanks for the report. fixed in 04dd2d5.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants