From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA11965; Wed, 23 Apr 2003 18:26:53 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA12418 for ; Wed, 23 Apr 2003 18:26:52 +0200 (MET DST) Received: from mail.npc.de (fw.npc.de [62.225.140.214]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h3NGQnT16831 for ; Wed, 23 Apr 2003 18:26:51 +0200 (MET DST) Received: from p5080FB2F.dip.t-dialin.net (lion.npc.de [192.168.129.1]) by mail.npc.de (Postfix) with ESMTP id BA37E149D; Wed, 23 Apr 2003 18:26:45 +0200 (CEST) Received: from hera.ffm.npc.de (hera.ffm.npc.de [192.168.130.8]) by p5080FB2F.dip.t-dialin.net (Postfix STYX NPC GmbH) with ESMTP id E4F6678E0; Wed, 23 Apr 2003 18:26:38 +0200 (CEST) Received: from ares.ffm.npc.de (ares.ffm.npc.de [192.168.130.32]) by hera.ffm.npc.de (Postfix HERA NPC GmbH) with ESMTP id 54B27159B9; Wed, 23 Apr 2003 18:26:38 +0200 (CEST) Received: from ares.ffm.npc.de (ares.ffm.npc.de [192.168.130.32]) by ares.ffm.npc.de (Postfix ARES NPC GmbH) with ESMTP id C805D183A; Wed, 23 Apr 2003 18:26:37 +0200 (CEST) Subject: Re: [Caml-list] jserv vs fastcgi From: Gerd Stolpmann To: Jeff Henrikson Cc: caml-list@inria.fr In-Reply-To: <35BDFDB4-732C-11D7-A75A-00039375801A@yahoo.com> References: <35BDFDB4-732C-11D7-A75A-00039375801A@yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 23 Apr 2003 18:26:36 +0200 Message-Id: <1051115197.27493.127.camel@ares> Mime-Version: 1.0 X-Spam: no; 0.00; gerd:01 stolpmann:01 caml-list:01 jserv:01 henrikson:01 commotion:99 ocamlnet:01 chock:01 whistles:01 neglected:01 hacks:01 distro:01 disadvantage:01 ajp-:01 implemented:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Am Son, 2003-04-20 um 14.32 schrieb Jeff Henrikson: > I periodically hear commotion on this list about Jserv. Ocamlnet has a > Jserv interface now I see. Can somebody explain to me what the > advantages of Jserv are over FastCGI? FastCGI I know is old ('96), but > it seems to serve my main goal, which is to keep my process alive so > that I can pool ODBC connections. The specification is something that > I can sit down and read in 30 minutes and understand: > > http://www.fastcgi.com/devkit/doc/fcgi-spec.html#S1 > > I haven't seen a specification for just Jserv. Apparently it's > superseded by the Java Servelet spec, which in version 2.4 is a 309 > page PDF file, chock full of bells and whistles which I haven't taken > the time to taxonomize, specified in notation which I don't understand. > It writes everything based on Java method calls, which doesn't give me > a sense of what the actual data being passed along the channel is at > all. > > I guess I also don't have a good sense of why FastCGI has been > neglected enough to, for example, not be updated for HTTP 1.1 keepalive > and etc. Though it sounds like there have been hacks to do this from > time to time. The fastcgi mailing list seems to be fairly active. > > Would anybody with an understanding of this be so kind as to explain > the big picture in a couple of paragraphs, if that's at all a > reasonable request? My inclination right now is to sit down and write > a fastcgi interface and configure Apache with mod_fastcgi, but I don't > want to do that and find out I'm using a senselessly obsolete interface. Well, when I selected the JServ protocol (=AJP), the main reason was its simplicity. You don't need 309 pages to describe it, the network protocol is much simpler (it's basically CGI over a socket). Furthermore, many people used it, and it is included in every Linux distro. I never compared AJP with fastcgi, I just picked something that worked. The disadvantage of AJP is that there have been numerous and frequent updates of the protocol since AJP-1.2 (what I implemented for O'Caml). Up to now, even the newest JK connector supports the old version 1.2, but this will likely change some day, and we need an implementation for a newer version. Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners