Closed jtang145 closed 9 years ago
to support this, I think a JNI Binding is necessary, as JAVA by itself cannot access unix sockets .. there's a third party project that allows this http://code.google.com/p/junixsocket/
if you have time, you could try it out... my next plans where to refactor the code so there is less global state/static access to other classes and maybe even a NIO-implementation of the stream/library.. so we might get some merge conflicts, but if you figure out how to connect it with junixsocket (or another impl) we could integrate this with the new code more easily..
ready to give it a spin? just fork the repo!
cheers, dominik
On Fri, Jun 6, 2014 at 5:36 AM, jerometang notifications@github.com wrote:
Noted that it only support connection by fastcgi tcp connection, is it possible also add support for unix socket connection?
— Reply to this email directly or view it on GitHub https://github.com/jFastCGI/jfastcgi/issues/14.
Dominik Dorn http://dominikdorn.com | http://twitter.com/domdorn XING: https://www.xing.com/profile/Dominik_Dorn LINKEDIN: http://at.linkedin.com/pub/dominik-dorn/66/b42/bb1/
oh.. I've just seen you mentioned "server" in the bug headline.. .is this really about the server or the client?
I've just commited an implementation based on https://github.com/caprica/juds
When specifying server endpoints in jfastcgi configuration files, we used to accept the
The juds library uses JNI and comes with a C library that you have to compile...
If I find another good unix socket library based on JNA I will use it instead juds, as I'm a little feared about people who struggle with native libs pushing bug reports about that ..
let me know if you have issues - cheers
Noted that it only support connection by fastcgi tcp connection, is it possible also add support for unix socket connection?