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
Issue with long params #1
Comments
Yes, I believe it is the same issue. I will try to debug it and write some proper test code. |
Was doing some debugging using strace on php5-fpm (comparing behavior to the following C client https://github.com/abhigna/fcgi-client). C client puts all the params into one big single request. Could this be the issue?
|
Yeah, maybe so. |
Possible fix (com/googlecode/fcgi4j/message/FCGIParams.java:65)
Going to try to validate this. |
You gave me an idea. The first bit in the first byte must be a 1. Try this PR (#2) and let me know if it works for you. |
Looks like this is solved now :) |
Thats great! |
Hello,
Probably similar to this issue: https://code.google.com/p/fcgi4j/issues/detail?id=2
Happens when param values are quite long (query string in my case).
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.write(IOUtil.java:148)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:524)
at java.nio.channels.SocketChannel.write(SocketChannel.java:493)
at com.googlecode.fcgi4j.FCGIConnection.writeStdin(FCGIConnection.java:406)
at com.googlecode.fcgi4j.FCGIConnection.write(FCGIConnection.java:367)
This happens when setting connection.setQueryString(queryString); or connection.addParams("REQUEST_URI", queryString);
Any idea? :)
The text was updated successfully, but these errors were encountered: