Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C333518474 for ; Thu, 10 Dec 2015 14:06:25 +0000 (UTC) Received: (qmail 40016 invoked by uid 500); 10 Dec 2015 14:06:25 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 39938 invoked by uid 500); 10 Dec 2015 14:06:25 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 39927 invoked by uid 99); 10 Dec 2015 14:06:25 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2015 14:06:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7A9CF1A5C64 for ; Thu, 10 Dec 2015 14:06:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.654 X-Spam-Level: X-Spam-Status: No, score=-0.654 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.554, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=greenbytes.de Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id cAGREP5Segq1 for ; Thu, 10 Dec 2015 14:06:14 +0000 (UTC) Received: from mail.greenbytes.de (mail.greenbytes.de [217.91.35.233]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 780ED2064F for ; Thu, 10 Dec 2015 14:06:14 +0000 (UTC) Received: from [192.168.1.42] (unknown [217.91.35.233]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.greenbytes.de (Postfix) with ESMTPSA id D62B615A0330 for ; Thu, 10 Dec 2015 15:06:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=greenbytes.de; s=mail; t=1449756373; bh=cReO/eUdo9NwBtMztYoX17JEk3I1tDjOjLP3zW1gm9k=; h=Subject:From:In-Reply-To:Date:References:To:From; b=m7VblZWP3apJzvLW2DUfzXHnXuINBmjf0RO624mtJuGtPtuzH56yPrRIw4r/Ml6cR sieY6DMAMkl76wfSz69/HWSH0QlLuO97MoZ0o9fR8VUduCahqcfda9m+e8IXaUlzuj bgxbtiNv/gTK4zNqpoKI9zTzJNfzuZqruWTE6LiE= Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Upgrade Summary From: Stefan Eissing In-Reply-To: <566984C7.5090908@oracle.com> Date: Thu, 10 Dec 2015 15:06:13 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <00D7A5D3-4671-49DA-B710-03A54C8485BF@greenbytes.de> References: <56660896.c74fc20a.15f56.0ebd@mx.google.com> <56660B43.2060507@gmail.com> <6B13DF2B-0586-42BB-B62F-59A7638B697D@greenbytes.de> <13FE9E7F-9620-4BF9-8EA4-57A6314D66BF@greenbytes.de> <9CCEFD7E-9ED3-4ED1-8F58-2134DD5310F9@gbiv.com> <566887B5.2080705@gmail.com> <5668CC4F.109@gmail.com> <5668EFDB.1050900@gmail.com> <566984C7.5090908@oracle.com> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.3112) > Am 10.12.2015 um 14:57 schrieb Mike Rumph : >=20 > Question below: >=20 > On 12/10/2015 2:46 AM, Stefan Eissing wrote: >> int xxx_switch(conn_rec *c, request_rec *r, server_rec *s, >> const char *protocol, int phase) >> { >> apr_status_t stats; >>=20 >> if (strcmp(my_protocol, protocol)) { > Do you mean "if my_protocol is protocol"? If the protocol to switch to is not mine, DECLINE. Should have written that in prose... >> return DECLINED; >> } >> =09 >> if (need_handler && phase !=3D handler) { >> return APR_EAGAIN; >> } >>=20 >> status =3D ap_upgrade_request(r, protocol, phase, = my_additional_header, process_body); >> if (status !=3D APR_SUCCESS) { >> // any type of error, could also fail if NULL is = passed instead of >> // &process_body and request has body >> return status; >> } >>=20 >> // c->output_filters can be written >> // c->input_filters can be read, will pass data to = process_body() until body is done, >> // then return data up the filter chain. >> process protocol; >>=20 >> return APR_EOF; >> } >>=20 >>=20 >=20