Hi there,
There is Java FastCGI code available in the FastCGI development kit at http://www.fastcgi.com/dist/fcgi.tar.gz
.
It was written by the OpenMarket FCGI guys in 1996, and shows its age
somewhat. There's also no threading or multiplexing support, although
given that (as I've recently discovered) there's apparently no flow
control built into FastCGI protocol, multiplexing might be a dangerous
thing anyway.
However they've implemented all the "wire"-level stuff in the FastCGI
protocol (http://www.fastcgi.com/devkit/doc/fcgi-spec.html), meaning
you can just code to input/output/error streams with all the web app
environment built up for you by the FCGI client http server, so I
thought some parts of it might be re-usable.
To that end I did get the FastCGI code running with some modifications
in a proof-of-concept multithreaded server application and had some
success thrashing it with ab behind nginx, IIRC getting ~700 reqs/s,
with keepalives at concurrency of ~25, but it was a fairly Hello World
application, just to see if I could use the FastCGI java code in a
multi-threaded way.
I'm currently investigating the possibility of gluing the useful
chunks of the FastCGI Java code onto Mina for a hobby project of mine,
and would be happy to contribute it if successful, but it's very much
a spare time project, which suggests it won't go anywhere for a while.
Would be very interested to hear about any other projects so as to
ensure no effort is duplicated.
Best wishes
Igor
On 17 Mar 2008, at 10:15, 이희승 (Trustin Lee) wrote:
I don't know much technical detail about scgi/fastcgi, so I am not
sure it can be implemented in Java. If so, please feel free to file
a JIRA issue so we can try to implement it or someone can see it and
contribute.
http://issues.apache.org/jira/browse/DIRMINA
HTH,
On Mon, 17 Mar 2008 19:03:51 +0900, Mathieu Lecarme <[EMAIL PROTECTED]
> wrote:
There is a mina subproject for http layer over mina. Is there any
plan to implement scgi and/or fastcgi?
M.
--
Trustin Lee - Principal Software Engineer, JBoss, Red Hat
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749
5355 // www.pokelondon.com