Return-Path: Mailing-List: contact modperl-help@apache.org; run by ezmlm Delivered-To: mailing list modperl@apache.org Received: (qmail 94188 invoked from network); 21 Mar 2000 22:14:05 -0000 Received: from noctis.bess.net (HELO localhost.localdomain) (206.129.0.147) by locus.apache.org with SMTP; 21 Mar 2000 22:14:05 -0000 Received: (from aderhaa@localhost) by localhost.localdomain (8.9.3/8.9.3) id OAA31756; Tue, 21 Mar 2000 14:12:50 -0800 Sender: aderhaa@noctis.bess.net To: modperl@apache.org Subject: converting HTTP to another protocol From: aderhaa@n2h2.com (Alan E. Derhaag) Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII Date: 21 Mar 2000 14:12:50 -0800 Message-ID: Lines: 24 X-Mailer: Gnus v5.6.9/Emacs 20.4 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I've drawn the duty of using the apache server with mod_perl with its wealth of socket handling capabilities to handle a protocol conversion. The PerlTransHandler gets the input too late, however, to allow the conversion since Apache assumes three elements will come on the connection request: a method (like GET), a URI and the HTML version assumed to be used. The protocol I am trying to match, however, only sends two elements: the protocol type and its version (no URI is needed). The balance of the connection information (headers) are consistent enough with standard HTTP to not be considered a problem. When only two elements are received, Apache drops out of receive mode and doesn't wait for any header information. I've thought of using mod_write to fake the additional information but there are timeout constraints (Keepalive, starting a timer) that would not allow this. Is there a way, short of modifying apache source to allow taking only two elements on the connect and still allow headers to be received? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Alan E. Derhaag Consultant from Interactive Business Systems phone: 206-336-2972 Consultant to N2H2 email: aderhaa@n2h2.com aderhaag@wolfenet.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-