-
Notifications
You must be signed in to change notification settings - Fork 165
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
empty result on multiple parallel calls #53
Comments
Hi, thanks for reporting the issue. I'm a bit busy at the moment, hoping to be able to look into it no later than next weekend. My first thought is that it's probably an upstream problem, with |
I'll give it a try |
@bezoerb How did that turn out for you; did you get to try out a later version? |
i could not make penthouse play nicely together with phantomjs 2.0.0 installed via homebrew but i could fix the issue in |
That is quite interesting, and if you find a way to reproduce that behavior I would like to take a look at it. Can think of a few reasons that might cause this, but need a reproducable test case. |
See https://travis-ci.org/addyosmani/critical/jobs/59405654 and https://travis-ci.org/bezoerb/penthouse/jobs/58228239 |
@pocketjoso are there any updates on this? |
Hmm. Looking at your test; are you expecting to get a full css response on each iteration? I don't think you can rely on getting that, when running that many calls in parallel. Penthouse just fires up one new In order to support multiple parallel So unless I'm mistaken what you're trying to do is not possible out of the box with |
@pocketjoso thanks for the quick reply. I tried to simulate the behavior when running critical via gulp on multiple files. Any ideas how this could be solved on our side? |
seems like critical runs in series when using with gulp. |
@bezoerb I had that problem with your critical module too. The Problem was that there were running too many instances communicating via a single Socket with the phantomjs process. II then spawned new childprocesses for each instance and with a max amount x at a time. And, take a look at my PR and pls provide some feedback since the critical module does not handle the delegated process handling from the penthouse module, which could introduce errors |
closing this at this could not be resolved in penthouse. |
Hey @pocketjoso,
i've just stumbled across an error where
penthouse
returns an empty string when it's called multiple times in parallel.Testcase: https://github.com/bezoerb/penthouse/blob/multipleFails/test/basic-tests.js#L91
Result: https://travis-ci.org/bezoerb/penthouse/jobs/58228239
Let me know if i can help fixing this.
The text was updated successfully, but these errors were encountered: