-
Notifications
You must be signed in to change notification settings - Fork 4
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
Truncated responses #6
Comments
Hi, The problem is because of multiplexed STDOUT and STDERR. When a STDERR answer comes in the middle it breaks everything. Steps to reproduce: Create a PHP file with:
The answer will stop at BREAKME instead of stopping at END The problem comes from the line: https://github.com/Happyr/fcgi4j/blob/master/src/com/googlecode/fcgi4j/FCGIConnection.java#L484 Proposed solution (I have refactored a bit read() as well to be consistent with read with ByteBuffers):
|
Fantastic! Thank you for reporting this bug and thank you @serphen for providing a fix. Would you mind sending a pull request with the changes? |
There appears to be a problem with
Sometimes, when the response is quite big, it's being truncated even if ByteBuffer.allocate is set to a higher value.
Any ideas? I will try to dig as much debug data as possible for this.
The text was updated successfully, but these errors were encountered: